Skip to content

The agent that grows with you

test(gateway): multiplex ingress probe waits as long for the queued row as its sibling waits

Teknium4fdfcdf24a2a
diff --git a/tests/gateway/fixtures/native_ingress_trust_multiplex.py b/tests/gateway/fixtures/native_ingress_trust_multiplex.py
index ac0dea6a9ad..0daaf6ecea1 100644
--- a/tests/gateway/fixtures/native_ingress_trust_multiplex.py
+++ b/tests/gateway/fixtures/native_ingress_trust_multiplex.py
@@ -125,7 +125,10 @@ async def multiplex_probe(runner, authority, primary, state, mode, peer):
queued = MessageEvent(text='MULTIPLEX_QUEUED', source=source, message_id='busy-2')
task = asyncio.create_task(adapter.handle_message(queued))
try:
- async with asyncio.timeout(3):
+ # A durable FIFO row, not an adapter-local queue: the bound is wall-clock only (the
+ # admission commits on the owner's writer, which a loaded runner can delay), like the
+ # model-gate and drain waits above.
+ async with asyncio.timeout(10):
while not any(row['request_id'] == 'busy-2' for row in rows(entry.session_id)):
await asyncio.sleep(0.01)
assert not adapter._pending_messages, 'callback wrapper restored adapter-local queue'