The test may fail if two consequent time.Now() returns the same value. Sleep 1ns to avoid this situation.
WaitTime waits on deadline instead of id.