mirror of
https://github.com/hanzoai/collab.git
synced 2026-10-30 18:44:20 +00:00
TestWSRelayBetweenPeers read b with a 100ms context and retried on timeout. coder/websocket closes a connection whose read context expires, so after the first timeout every retry read a closed socket and the test failed whenever b joined later than that: 36 of 960 runs under 48 parallel processes. b now reads once, under the test's context, while a resends every 100ms; the same load fails 0 of 1600 runs. Co-authored-by: Hanzo Dev <[email protected]>