Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into replace-travis-with-github…
Browse files Browse the repository at this point in the history
…-actions
  • Loading branch information
noha committed Apr 25, 2022
2 parents 7255bfd + 93ae398 commit bf33423
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Scheduler-Core-Tests/SchedulerTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ SchedulerTest >> testRunAtSomeTimeInTheFuture [
timeToRun := DateAndTime now + 2 second.
task := scheduler do: [] at: timeToRun every: 1 hour.

2.1 seconds asDelay wait.
"set enough time that even on slow computers like CI the test can pass"
3 seconds asDelay wait.

self assert: task nextRunTime equals: (timeToRun + 1 hour).
self assert: task schedule schedule first equals: 1 hour.
Expand Down Expand Up @@ -226,7 +227,8 @@ SchedulerTest >> testRunUsingCustomSchedule [
schedule schedule: {1 second. 2 seconds. 20 seconds}.

scheduler do: [runCount := runCount + 1] following: schedule.
3.2 seconds asDelay wait.
"set enough time that even on slow computers like CI the test can pass"
4 seconds asDelay wait.

self assert: runCount equals: 2.
self assert: scheduler taskCount equals: 1
Expand Down

0 comments on commit bf33423

Please sign in to comment.