Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tests/gateway/test_session_hygiene.py
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,11 @@ def _compress_context(
elapsed = time.monotonic() - started

assert result == "ok"
assert elapsed < 0.15
# Loose wall-clock bound per flake policy: this asserts the handler did
# NOT block on the hygiene-compression timeout path (which would take
# multiple seconds), not a precise latency. 0.15s missed by ~1-8ms on
# busy CI shards twice on 2026-07-23.
assert elapsed < 2.0
assert worker_started.is_set()
assert runner._run_agent.await_count == 1
assert runner._hygiene_compression_failure_cooldowns["sess-timeout"] > time.time()
Expand Down
Loading