logoalt Hacker News

9rxtoday at 3:33 PM1 replyview on HN

The parent is talking about when the implementation is flaky, not the test. When you go to fix the problem under that scenario there is no reason for you to modify the test. The test is fine.


Replies

rkangeltoday at 3:57 PM

What you're describing is the every day reality but what you WANT is that if your implementation has a race condition, then you want a test that 100% of the time detects that there is a race condition (rather than 1% of the time).

show 1 reply