Skip to content

The agent that grows with you

test(gateway): give the parked relay test's redelivery wait a 10 s floor

Tekniumd29f441e8cff
diff --git a/tests/gateway/test_parked_profile_ingress.py b/tests/gateway/test_parked_profile_ingress.py
index 49c54e95679..fda5e4803e3 100644
--- a/tests/gateway/test_parked_profile_ingress.py
+++ b/tests/gateway/test_parked_profile_ingress.py
@@ -151,7 +151,10 @@ async def test_a_relay_frame_for_a_parked_profile_is_refused_to_its_sender_not_h
sent.append(buffer_id)
await ws.send(frame(buffer_id, chat))
try:
- if await asyncio.wait_for(acks.get(), 1.0) == buffer_id:
+ # The connector's redelivery wait. A loaded runner can take seconds to ack
+ # (tests/AGENTS.md: >= 2 s), and a withheld ack never comes at all: then b2
+ # is never sent and the wait below fails, so a long wait still proves it.
+ if await asyncio.wait_for(acks.get(), 10.0) == buffer_id:
break
except TimeoutError:
continue # redeliver the unacknowledged head