mirror of
https://github.com/netbirdio/netbird.git
synced 2026-08-26 01:21:30 +02:00
connPair closed the accepted connection right after the handshake, so the reads in TestSweepClosesRegisteredConns failed on the peer's own close rather than on the sweep. The test passed even with Sweep's close loop removed. Hold the peer until cleanup so the read errors come from Sweep.