mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-28 09:21:55 +01:00
The hand-off tests used the app's own waits: 500 ms to connect, 2 s for the running app and 5 s for a launch. On a busy machine an exchange can take longer, and then forward() fails, or a refusal test passes because a wait ran out rather than because the app refused the message. listen(), forward() and start_at() now take the waits as a Timeouts value; the app passes the same 500 ms, 2 s and 5 s as before. The tests pass a 60 s guard that only stops a hung test, wait for each delivery on the channel, and check that each refused exchange ended with an error from the other side, not with a wait that ran out. With a 6 s stall added to receive(), the 10 single_instance tests pass; with the stall and the app's own waits, four of them fail.