The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(relay): defer compaction flush expectation
Bryan Bednarskibc92c875efb0
diff --git a/tests/agent/test_relay_session_segments.py b/tests/agent/test_relay_session_segments.pyindex 8a228891caf..2e778c4d477 100644--- a/tests/agent/test_relay_session_segments.py+++ b/tests/agent/test_relay_session_segments.py@@ -259,7 +259,10 @@ class TestCompactionRotation:assert len(fake.scope.pops) == 1, ("rotating compaction must close the old session scope")- assert fake.subscribers.flushed >= 1+ # Subscriber flushing is process-wide and happens once at final plugin+ # teardown, after all sessions have drained. Flushing on this per-session+ # close can block an active asyncio loop owned by another session.+ assert fake.subscribers.flushed == 0def test_rotating_compaction_mid_turn_defers_close_to_end_turn(self, coordinator, monkeypatch