Repository navigation
fix flaky TCPPeer test - #5488
Conversation
|
Claude flagged a possible remaining race. GET_TX_SET is posted to the |
525fc04 to
cb9cf5b
Compare
fixed |
cb9cf5b to
8ccf3c9
Compare
There was a problem hiding this comment.
🟢 Approval recommended
The focused test-only changes address the reported races while preserving communication checks, with no unresolved findings.
No open issues 🎉
What changed in this PR
Stabilizes the TCPPeer communication test by isolating its assertions from unrelated background traffic.
Changes:
- Disables forced SCP and stops overlay ticks before authentication.
- Replaces aggregate write counts with message-specific counters and verifies ERROR delivery.
| File | Description |
|---|---|
| src/overlay/test/TCPPeerTests.cpp | Removes traffic-related assertion races without changing production code. |
Review effort: Balanced
Test has been failing recently with
this fixes two potential causes (SCP firing and pings firing). confirmed with a bunch of running-in-a-loop with different prng seeds and varying forced delays, which is about the best one can do.