mirror of
https://relay.ngit.dev/npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr/ngit-grasp.git
synced 2026-10-05 23:18:24 +00:00
Five sync tests waited for relay connections with connect().and_wait(30 s). That call checks the relay status and then subscribes to status notifications; a loopback connection that completes between the two is never observed, and the caller sleeps for the whole timeout. Under scheduler pressure this turns a sub-millisecond connect into a 30 s stall. Use the shared connect_client helper, which awaits the connection attempts through try_connect and fails the test if any relay refuses. Validation: the sync test binary passed (114 tests, 1 ignored) after the change; formatting and all-targets Clippy with warnings denied pass. Assisted-by: Claude Fable 5.1 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>