Sleeping is dangerous.. It could be that you don't sleep long enough and the test fails. Especially on our 'slow' jenkins which is much more sensitive to timing issues.