Skip to content

Commit

Permalink
chore: 11 attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
roggervalf committed Dec 5, 2024
1 parent 51ba438 commit 8891c84
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/test_job_scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,7 @@ describe('Job Scheduler', function () {
});

it('should repeat 7:th day every month at 9:25', async function () {
this.timeout(10000);
this.timeout(15000);

const date = new Date('2017-02-02 7:21:42');
this.clock.setSystemTime(date);
Expand All @@ -1194,7 +1194,6 @@ describe('Job Scheduler', function () {
const worker = new Worker(
queueName,
async () => {
console.log(new Date());
nextTick();
},
{
Expand All @@ -1210,7 +1209,6 @@ describe('Job Scheduler', function () {
const completing = new Promise<void>((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!);
Expand All @@ -1227,7 +1225,7 @@ describe('Job Scheduler', function () {
resolve();
}
} catch (error) {
console.log(error);
console.log('el error', error);
reject(error);
}
});
Expand Down

0 comments on commit 8891c84

Please sign in to comment.