docs(plan): agent-v9-hardening — тест долгого claim без второго ожидания (#23)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ade0241bac
commit
ebbd5d74dc
@ -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