Skip to content

The agent that grows with you

test(gateway): bounded-wait test waits for the writer to start

kshitijk4poorb8a21e0ede66
diff --git a/tests/gateway/test_status.py b/tests/gateway/test_status.py
index 254eea9f765..658d88c1424 100644
--- a/tests/gateway/test_status.py
+++ b/tests/gateway/test_status.py
@@ -518,7 +518,7 @@ class TestRuntimeStatusBackgroundWriter:
persisted = status.write_runtime_status(
gateway_state="starting", wait_timeout=0.05
)
- assert write_started.is_set()
+ assert write_started.wait(timeout=2.0)
assert persisted is False
finally:
release_write.set()