From cc14759772b1f41c3c971e3249826185849fbc1c Mon Sep 17 00:00:00 2001 From: Cole Bailey Date: Wed, 1 May 2024 16:20:40 +0200 Subject: [PATCH] fix: noisy test due to insufficient wait time Signed-off-by: Cole Bailey --- providers/openfeature-provider-flagd/tests/e2e/conftest.py | 3 ++- .../tests/e2e/inprocess/grpc/conftest.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/providers/openfeature-provider-flagd/tests/e2e/conftest.py b/providers/openfeature-provider-flagd/tests/e2e/conftest.py index 7a85c2f..5de9923 100644 --- a/providers/openfeature-provider-flagd/tests/e2e/conftest.py +++ b/providers/openfeature-provider-flagd/tests/e2e/conftest.py @@ -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( diff --git a/providers/openfeature-provider-flagd/tests/e2e/inprocess/grpc/conftest.py b/providers/openfeature-provider-flagd/tests/e2e/inprocess/grpc/conftest.py index ef6c463..4ddd18a 100644 --- a/providers/openfeature-provider-flagd/tests/e2e/inprocess/grpc/conftest.py +++ b/providers/openfeature-provider-flagd/tests/e2e/inprocess/grpc/conftest.py @@ -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()