Fix Test Flappers - #1612
Conversation
|
Claude finished @scottf's task in 2m 40s —— View job PR Review
The changes are clean and the motivation is sound. A few observations:
The writer-stop approach is a good idea — stopping the writer before publishing guarantees a deterministic backlog in One thing worth confirming: after Also worth noting: with the writer stopped, the reader is still running. If the server sends a PING before the test completes, no PONG can be queued, and the server may eventually time out the connection. For a test this short this is not a practical concern, but it's something to be aware of if the test ever flaps with a "connection closed" error.
Converting from The
Appropriate. The combination of a polling background thread and 3000 unthrottled publishes made it prone to both races and reconnect-buffer overflow on slow/contended machines. No correctness, security, or thread-safety issues found. The refactors are minimal and targeted — they fix the flakiness without adding unrelated changes. |
philpennock
left a comment
There was a problem hiding this comment.
This still seems prone to flakiness, isn't there a fake clock which is appropriate to use here, tied into the thing being tested?
I think it's better, but will watch it to see if it's still flaky. |
No description provided.