Skip to content

Commit b2ad90c

Browse files
committed
fix failing tests, upgrade test harness
Signed-off-by: christian.lutnik <[email protected]>
1 parent ed60818 commit b2ad90c

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

providers/openfeature-provider-flagd/tests/e2e/step/event_steps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def handler(event):
4444

4545

4646
def assert_handlers(handles, event_type: str, max_wait: int = 2):
47-
poll_interval = 1
47+
poll_interval = .2
4848
while max_wait > 0:
4949
found = any(h["type"] == event_type for h in handles)
5050
if not found:

providers/openfeature-provider-flagd/tests/e2e/step/flag_step.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ def evaluate_with_details(
4848
@when("the flag was modified")
4949
def assert_flag_change_event(container):
5050
requests.post(f"{container.get_launchpad_url()}/change", timeout=1)
51-
sleep(0.2)
5251

5352

5453
@then("the flag should be part of the event payload")

providers/openfeature-provider-flagd/tests/e2e/step/provider_steps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def flagd_restart(
130130
resolver_type: ResolverType,
131131
):
132132
requests.post(
133-
f"{container.get_launchpad_url()}/restart?seconds={seconds}", timeout=2
133+
f"{container.get_launchpad_url()}/restart?seconds={seconds}", timeout=float(seconds) + 2
134134
)
135135
pass
136136

providers/openfeature-provider-flagd/tests/test_errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,5 +108,5 @@ def fail(*args, **kwargs):
108108
)
109109

110110
elapsed = time.time() - t
111-
assert abs(elapsed - wait * 0.001) < 0.11
111+
assert abs(elapsed - wait * 0.001) < 0.15
112112
assert init_failed

0 commit comments

Comments
 (0)