The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test: model token flushes in the persistence race fixture
Tekniumed3b9920ad7b
diff --git a/tests/run_agent/test_run_agent.py b/tests/run_agent/test_run_agent.pyindex 340cf49b04a..e490ddd1572 100644--- a/tests/run_agent/test_run_agent.py+++ b/tests/run_agent/test_run_agent.py@@ -126,8 +126,12 @@ def test_direct_session_db_flushes_share_marker_claim(agent):self.entered = threading.Event()self.release = threading.Event()self.calls = 0+ self.token_flushes = 0self._lock = threading.Lock()+ def flush_token_counts(self):+ self.token_flushes += 1+def append_message(self, **kwargs):with self._lock:self.calls += 1@@ -178,6 +182,7 @@ def test_direct_session_db_flushes_share_marker_claim(agent):assert not normal.is_alive()assert not direct.is_alive()assert db.rows == ["exactly once"]+ assert db.token_flushes == 1def test_malformed_memory_config_still_builds_default_store():