Last Updated: February 25, 2016
·
295
· jiewmeng

Run command (eg. unit test) until failure (to test race condition)

Race conditions are hard to replicate reliably. This is not the best way of reproducing a race condition but it has served me OK so far: running a command, in this case a unit test or suite until failure.

while mocha; do :; done