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
Written by Jiew Meng
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Unit testing
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#