Skip to content

Commit

Permalink
fixup: incuberating feedback from pr review
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Schrottner <[email protected]>
  • Loading branch information
aepfli committed Dec 27, 2024
1 parent 482a0e0 commit fe1df5d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions providers/openfeature-provider-flagd/tests/e2e/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ def assert_handlers(
)
)
def assert_handler_run(event_type: ProviderEvent, event_handles):
assert_handlers(event_handles, event_type, max_wait=20)
assert_handlers(event_handles, event_type, max_wait=30)


@then(
Expand All @@ -623,7 +623,7 @@ def assert_handler_run(event_type: ProviderEvent, event_handles):
)
def assert_disconnect_handler(error_handles, event_type: ProviderEvent):
# docker sync upstream restarts every 5s, waiting 2 cycles reduces test noise
assert_handlers(error_handles, event_type, max_wait=20)
assert_handlers(error_handles, event_type, max_wait=30)


@when(
Expand Down Expand Up @@ -674,10 +674,7 @@ def wait_for(pred, poll_sec=2, timeout_sec=10):
@given("flagd is unavailable", target_fixture="client")
def flagd_unavailable(resolver_type):
api.set_provider(
FlagdProvider(
resolver_type=resolver_type,
port=99999,
),
FlagdProvider(resolver_type=resolver_type, port=99999, retry_grace_period=2),
"unavailable",
)
return api.get_client("unavailable")
Expand Down

0 comments on commit fe1df5d

Please sign in to comment.