Skip to content

Commit

Permalink
test: try to fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
roggervalf committed Jan 25, 2025
1 parent 69a2b37 commit 94f37ff
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_bulk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,14 @@ describe('bulk jobs', () => {
const worker = new Worker(
queueName,
async () => {
await delay(900);
await delay(800);
},
{ connection, prefix },
);
const worker2 = new Worker(
queueName,
async () => {
await delay(900);
await delay(800);
},
{ connection, prefix },
);
Expand All @@ -145,7 +145,6 @@ describe('bulk jobs', () => {
const completed = new Promise<void>(resolve => {
queueEvents.on('completed', () => {
counter++;
console.log('counter', counter);
if (counter === numJobs) {
resolve();
}
Expand Down

0 comments on commit 94f37ff

Please # to comment.