Skip to content

Commit 71951f8

Browse files
Update src/test/java/dev/openfeature/sdk/e2e/steps/FlagStepDefinitions.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 c57e3da commit 71951f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ public void the_error_code_should_be(String errorCode) {
9797
}
9898

9999
@Then("the error message should contain {string}")
100-
public void the_error_error_message_should_contain(String errorCode) {
101-
assertThat(state.evaluation.getErrorMessage()).contains(errorCode);
100+
public void the_error_message_should_contain(String messageSubstring) {
101+
assertThat(state.evaluation.getErrorMessage()).contains(messageSubstring);
102102
}
103103

104104
@Then("the resolved metadata value \"{}\" with type \"{}\" should be \"{}\"")

0 commit comments

Comments
 (0)