Skip to content

The agent that grows with you

test: loosen two wall-clock bounds that flaked under a 40-worker run

teknium135d3c879f312
diff --git a/tests/gateway/test_session_hygiene.py b/tests/gateway/test_session_hygiene.py
index 8128e5c56ab..0bce9a5f44c 100644
--- a/tests/gateway/test_session_hygiene.py
+++ b/tests/gateway/test_session_hygiene.py
@@ -1705,7 +1705,9 @@ async def test_hygiene_does_not_wait_ceiling_after_fence_cancel(
assert result == "ok"
assert worker_started.wait(timeout=2)
- assert elapsed < 2.0, (
+ # The bug this guards against is a 600s ceiling; a saturated CI runner
+ # legitimately adds seconds of scheduling latency, so the bound is loose.
+ assert elapsed < 20.0, (
f"hygiene host waited {elapsed:.1f}s after fence cancel — "
"must not extend toward the 600s ceiling (#96953)"
)
diff --git a/tests/tui_gateway/test_hosted_room_driver_runtime.py b/tests/tui_gateway/test_hosted_room_driver_runtime.py
index bdf5fe77981..72ee4d30369 100644
--- a/tests/tui_gateway/test_hosted_room_driver_runtime.py
+++ b/tests/tui_gateway/test_hosted_room_driver_runtime.py
@@ -422,7 +422,7 @@ def _runtime(
)
-def _wait_for(predicate, *, timeout: float = 2.0) -> None:
+def _wait_for(predicate, *, timeout: float = 10.0) -> None:
deadline = time.monotonic() + timeout
while time.monotonic() < deadline:
if predicate():