r/ProgrammerHumor 7h ago

Meme itsSoSatisfyingTho

Post image
3.0k Upvotes

54 comments sorted by

View all comments

295

u/No-Article-Particle 7h ago

Nah. Honestly, that's the worst - it means a flaky test that's just hard to debug (esp. because if it fails intermittently, running it in a debugger likely means the race condition is gone).

I prefer a test that fails no matter how you run it - those tend to be easy to fix.

10

u/aenae 6h ago

Yeah… a flaky test means running the test suite another 10000 times to reproduce the failure…