From 73b8e337c849815db70bb71f51200dbf8c6f52e4 Mon Sep 17 00:00:00 2001 From: roggervalf Date: Wed, 4 Dec 2024 17:35:05 -0600 Subject: [PATCH] test: 5 attempt --- tests/test_job_scheduler.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_job_scheduler.ts b/tests/test_job_scheduler.ts index 9d6975b67f..9d90f584da 100644 --- a/tests/test_job_scheduler.ts +++ b/tests/test_job_scheduler.ts @@ -1190,9 +1190,7 @@ describe('Job Scheduler', function () { this.clock.setSystemTime(date); const nextTick = () => { - const now = moment(); - const nextMonth = moment().add(1, 'months'); - this.clock.tick(nextMonth - now); + this.clock.tick(ONE_DAY * 31); }; const worker = new Worker(queueName, async () => {}, {