Skip to content

Commit f0d5d3f

Browse files
sheerloxintcreator
authored andcommitted
test: don't stop/start job before using setTime
setTime() already stops/starts the job
1 parent 31989e0 commit f0d5d3f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tests/cron.test.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -854,10 +854,8 @@ describe('cron', () => {
854854
job.start();
855855
clock.tick(1000);
856856

857-
job.stop();
858857
const time = cron.time('*/2 * * * * *');
859858
job.setTime(time);
860-
job.start();
861859

862860
clock.tick(4000);
863861

@@ -885,7 +883,6 @@ describe('cron', () => {
885883

886884
clock.tick(1000);
887885

888-
job.stop();
889886
expect(() => {
890887
job.setTime(time);
891888
}).toThrow();

0 commit comments

Comments
 (0)