Sleeping 4 seconds in a tests is not good. I understand that you don't have a way to change the default values in the scheduler, but as a test developer is your responsibility to ensure that the test is testeable. Next time you have a problem like this, please check with the developer so you can change default values or mock the clock in order to avoid wasting time sleeping