Агент v9 и run.py v2: устойчивость самообновления, диагностика, фейки (#23) #24
@ -556,7 +556,11 @@ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>"
|
||||
|
||||
def test_command_arrives_during_long_claim(self):
|
||||
self.hub.claim_wait = 5.0
|
||||
threading.Timer(0.3, lambda: self.hub.enqueue("ensure_fields", {"key": "AURORA-1", "duedate": "2026-10-23"})).start()
|
||||
|
||||
def arrive():
|
||||
self.hub.enqueue("ensure_fields", {"key": "AURORA-1", "duedate": "2026-10-23"})
|
||||
self.hub.claim_wait = 0 # следующий claim (после отчёта) — без ожидания
|
||||
threading.Timer(0.3, arrive).start()
|
||||
start = time.monotonic()
|
||||
self.runner.loop()
|
||||
self.assertLess(time.monotonic() - start, 4) # ответ пришёл с командой, а не по таймауту
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user