You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assertTrue("Delay was not correctly applied", delayIsCorrect)
673
+
val nextExecutionTime1 = rollup.jobSchedule.getNextExecutionTime(null).toEpochMilli()
674
+
assertTrue("The first job execution time should be after [job start time] + [delay].", nextExecutionTime1 >= jobStartTime.toEpochMilli() + delay)
675
+
assertTrue("The first job execution time should not be delayed too much after [job start time] + [delay].", nextExecutionTime1 <= jobStartTime.toEpochMilli() + delay +100)
672
676
673
677
waitFor {
674
-
// Wait until half a second before the intended execution time
val nextExecutionTime2 = rollup.schedule.getNextExecutionTime(null).toEpochMilli()
682
+
assertTrue("The second job execution time should be not earlier than a minute after the first execution.", nextExecutionTime2 - nextExecutionTime1 >=60000)
683
+
assertTrue("The second job execution time should not be too delayed after the first execution.", nextExecutionTime2 - nextExecutionTime1 <=60000+100)
0 commit comments