Skip to content

Commit

Permalink
fix: noisy test due to insufficient wait time
Browse files Browse the repository at this point in the history
Signed-off-by: Cole Bailey <[email protected]>
  • Loading branch information
colebaileygit committed May 1, 2024
1 parent 19a29e5 commit cc14759
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion providers/openfeature-provider-flagd/tests/e2e/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ def assert_handler_run(handles, event_type: ProviderEvent):
)
)
def assert_disconnect_handler(handles, event_type: ProviderEvent):
assert_handlers(handles, event_type, max_wait=6)
# docker sync upstream restarts every 5s, waiting 2 cycles reduces test noise
assert_handlers(handles, event_type, max_wait=10)


@then(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ def setup_provider(port: int) -> OpenFeatureClient:
FlagdProvider(
resolver_type=ResolverType.IN_PROCESS,
port=port,
timeout=0.1,
retry_backoff_seconds=0.1,
)
)
return api.get_client()
Expand Down

0 comments on commit cc14759

Please sign in to comment.