Skip to content

Commit

Permalink
change test to not fail due to multiple calls scheduled 30 ms apart r…
Browse files Browse the repository at this point in the history
…unning all on the same process tick (on travis-ci)
  • Loading branch information
andrasq committed Feb 21, 2019
1 parent 187124b commit af75193
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 @@ -75,7 +75,7 @@ module.exports = {
now += 1;
t.ok(info._start <= now);
t.ok(now % 30 < 3);
if (++callCount >= 5) {
if (++callCount === 5) {
cron.cancelCall(info);
t.done();
}
Expand Down

0 comments on commit af75193

Please sign in to comment.