Skip to content

Commit

Permalink
test: fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
roggervalf committed Nov 21, 2023
1 parent a25ce76 commit 988e40d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_pause.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ describe('Pause', function () {
await worker.resume();

await processPromise;
worker.close();
await worker.close();
});

it('should wait until active jobs are finished before resolving pause', async () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/test_repeat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,7 @@ describe('repeat', function () {
};
});

const worker = new Worker(queueName, processor, { connection });
const worker = new Worker(queueName, processor, { connection, prefix });
const delayStub = sinon.stub(worker, 'delay').callsFake(async () => {});
await worker.waitUntilReady();

Expand Down

0 comments on commit 988e40d

Please sign in to comment.