Skip to content

Commit c7355a9

Browse files
Update src/test/java/dev/openfeature/sdk/e2e/steps/ContextSteps.java
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Simon Schrottner <[email protected]>
1 parent 4b3c267 commit c7355a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/dev/openfeature/sdk/e2e/steps/ContextSteps.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ public void a_context_containing_a_key_with_null_value(String key)
114114
public void a_context_containing_a_key_with_type_and_with_value(String key, String type, String value)
115115
throws ClassNotFoundException, InstantiationException {
116116
Map<String, Value> map = state.context.asMap();
117-
map.put(key, new Value(value));
117+
Map<String, Value> map = state.context.asMap();
118+
map.put(key, new Value(Utils.convert(value, type)));
118119
state.context = new MutableContext(state.context.getTargetingKey(), map);
119-
}
120120

121121
@Given("a context containing a targeting key with value {string}")
122122
public void a_context_containing_a_targeting_key_with_value(String string) {

0 commit comments

Comments
 (0)