Skip to content

Commit 60a282f

Browse files
committed
fixup: e2e timeout
Signed-off-by: Todd Baert <[email protected]>
1 parent 88c54b8 commit 60a282f

File tree

1 file changed

+4
-2
lines changed
  • providers/flagd/src/test/java/dev/openfeature/contrib/providers/flagd/e2e/steps

1 file changed

+4
-2
lines changed

providers/flagd/src/test/java/dev/openfeature/contrib/providers/flagd/e2e/steps/ProviderSteps.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,9 @@ public void the_flag_was_modded() {
202202

203203
@Then("the client should be in {} state")
204204
public void the_client_should_be_in_fatal_state(String clientState) {
205-
await().atMost(100, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(state.client.getProviderState())
206-
.isEqualTo(ProviderState.valueOf(clientState.toUpperCase())));
205+
await().pollDelay(10, TimeUnit.MILLISECONDS)
206+
.atMost(100, TimeUnit.MILLISECONDS)
207+
.untilAsserted(() -> assertThat(state.client.getProviderState())
208+
.isEqualTo(ProviderState.valueOf(clientState.toUpperCase())));
207209
}
208210
}

0 commit comments

Comments
 (0)