The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(cron): the run_job FakeFuture double answers done() like the real Future
kshitijk4poor5f406d88ea5c
diff --git a/tests/cron/test_scheduler.py b/tests/cron/test_scheduler.pyindex 21759419d38..6abd13b40ea 100644--- a/tests/cron/test_scheduler.py+++ b/tests/cron/test_scheduler.py@@ -921,6 +921,9 @@ class TestRunJobSessionPersistence:def result(self):return {"final_response": "ok"}+ def done(self):+ return True # run_job's finally asks the real Future; this one has already returned+fake_future = FakeFuture()fake_pool = MagicMock()fake_pool.submit.return_value = fake_future