Skip to content

Commit

Permalink
test: fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
manast committed Dec 13, 2024
1 parent 7113f4a commit 791ba26
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_job_scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1710,11 +1710,12 @@ describe('Job Scheduler', function () {
});

const repeatableJob = await queue.upsertJobScheduler('test', repeatOpts);
const delayedCount = await queue.getDelayedCount();
expect(delayedCount).to.be.equal(1);

await repeatableJob!.promote();

const delayedCount = await queue.getDelayedCount();
expect(delayedCount).to.be.equal(0);

this.clock.tick(177);

await failing;
Expand Down

0 comments on commit 791ba26

Please sign in to comment.