From c8e5f78256b8acfe690be4bc35365a0b2374fa51 Mon Sep 17 00:00:00 2001 From: roggervalf Date: Wed, 4 Dec 2024 21:39:42 -0600 Subject: [PATCH] chore: debug --- tests/test_job_scheduler.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_job_scheduler.ts b/tests/test_job_scheduler.ts index 0ae67720f0..c1186d12e8 100644 --- a/tests/test_job_scheduler.ts +++ b/tests/test_job_scheduler.ts @@ -1181,7 +1181,7 @@ describe('Job Scheduler', function () { }); }); - it('should repeat 7:th day every month at 9:25', async function () { + it.only('should repeat 7:th day every month at 9:25', async function () { this.timeout(8000); const date = new Date('2017-02-02 7:21:42'); @@ -1194,6 +1194,7 @@ describe('Job Scheduler', function () { const worker = new Worker( queueName, async () => { + console.log(new Date()); nextTick(); }, { @@ -1209,6 +1210,7 @@ describe('Job Scheduler', function () { const completing = new Promise((resolve, reject) => { worker.on('completed', async job => { try { + console.log('completed', new Date()); if (prev) { expect(prev.timestamp).to.be.lt(job.timestamp); const processedOn = new Date(job.processedOn!);