The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(gateway): MSG-23/MSG-26 negative windows are 2 s too
Tekniumffbb90f2e791
diff --git a/tests/gateway/test_busy_burst_serial_reader.py b/tests/gateway/test_busy_burst_serial_reader.pyindex a12f0806e4e..b0c5425387c 100644--- a/tests/gateway/test_busy_burst_serial_reader.py+++ b/tests/gateway/test_busy_burst_serial_reader.py@@ -150,7 +150,7 @@ async def test_new_waits_for_a_burst_still_committing(monkeypatch, tmp_path):await adapter.handle_message(_photo(source, tmp_path, 1))assert await asyncio.to_thread(entered.wait, 5)new = asyncio.create_task(adapter.handle_message(MessageEvent(text='/new', source=source, message_id='N')))- await asyncio.wait({new}, timeout=0.5)+ await asyncio.wait({new}, timeout=2.0) # a negative window (>= 2 s): main's /new would land herefinally:release.set()await asyncio.wait_for(new, 10)diff --git a/tests/gateway/test_native_admission_arrival_order.py b/tests/gateway/test_native_admission_arrival_order.pyindex 52eeb7b100f..3624a686a2b 100644--- a/tests/gateway/test_native_admission_arrival_order.py+++ b/tests/gateway/test_native_admission_arrival_order.py@@ -129,7 +129,7 @@ async def test_a_cancelled_middle_input_does_not_let_the_next_overtake(tmp_path,await asyncio.sleep(0)second.cancel() # e.g. the busy caller's task is cancelledawait asyncio.gather(second, return_exceptions=True)- await asyncio.wait({third}, timeout=0.3)+ await asyncio.wait({third}, timeout=2.0) # a negative window (>= 2 s): main lets x3 overtake hererelease.set()await asyncio.gather(first, third)assert _order(authority) == ['x1-video', 'x3-text']@@ -178,7 +178,7 @@ async def test_stop_fences_inputs_still_capturing_or_waiting(tmp_path, monkeypatfirst = admit(X, 'x1-video', media=True, ingress=True)await asyncio.to_thread(entered.wait, 5)second = admit(X, 'x2-text', ingress=True)- await asyncio.wait({second}, timeout=0.3) # main commits it here+ await asyncio.wait({second}, timeout=2.0) # a negative window (>= 2 s): main commits it hereawait authority.runner._hm_stop_owner_turn(route(X))release.set()if chat == 'paused':