From fc3e71146b8458f92e68efc9a60ad7c6434fa9ec Mon Sep 17 00:00:00 2001 From: Aditya Kishore Date: Tue, 13 Feb 2024 15:08:56 -0500 Subject: [PATCH] single scenario test guarantees exclusion of result1 and result3 --- .../test/java/com/intuit/karate/core/FeatureRuntimeTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/karate-core/src/test/java/com/intuit/karate/core/FeatureRuntimeTest.java b/karate-core/src/test/java/com/intuit/karate/core/FeatureRuntimeTest.java index 7da7aedbe..5a3b04fa2 100644 --- a/karate-core/src/test/java/com/intuit/karate/core/FeatureRuntimeTest.java +++ b/karate-core/src/test/java/com/intuit/karate/core/FeatureRuntimeTest.java @@ -410,7 +410,7 @@ void testSingleScenario() { FeatureRuntime featureRuntime = FeatureRuntime.of(new Suite(), featureCall, null); featureRuntime.run(); - FeatureResult result = featureRuntime.result; - matchContains(result.getVariables(), "{ result2: 'Two' }"); + var resultVars = featureRuntime.result.getVariables(); + matchContains(resultVars, "{ result1: '#notpresent', result2: 'Two', result3: '#notpresent' }"); } }