diff --git a/tests/test_job_scheduler.ts b/tests/test_job_scheduler.ts index 1b866f7439..b5a360ce37 100644 --- a/tests/test_job_scheduler.ts +++ b/tests/test_job_scheduler.ts @@ -38,7 +38,9 @@ describe('Job Scheduler', function () { }); beforeEach(async function () { - this.clock = sinon.useFakeTimers(); + this.clock = sinon.useFakeTimers({ + shouldClearNativeTimers: true, + } as any); queueName = `test-${v4()}`; queue = new Queue(queueName, { connection, prefix }); repeat = new Repeat(queueName, { connection, prefix });