Skip to content

Commit

Permalink
allow 5ms slop when testing actual start time, up from 3
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasq committed Feb 26, 2019
1 parent 7dd71a8 commit 1086928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ module.exports = {
// allow for a possible off-by-one with nodejs setTimeout
now += 1;
t.ok(info._start <= now);
t.ok(now % 30 < 3);
t.ok(now % 30 < 5);
if (++callCount === 5) {
cron.cancelCall(info);
t.done();
Expand Down

0 comments on commit 1086928

Please sign in to comment.