Not a big fan of using sleep like this. Always possible for the timeout to be be to short on a slower machine, or just way too long and cause tests to take longer than they really need to take.