Skip to content

Commit

Permalink
update dependencies (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
evantahler authored Dec 5, 2020
1 parent b2882dc commit e2ad5ef
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion __tests__/plugins/jobLock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ describe("plugins", () => {
worker1.end();
worker2.end();
expect(new Date().getTime() - startTime).toBeLessThan(jobDelay * 3);
resolve();
resolve(null);
}
};

Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@
"ioredis": "^4.19.2"
},
"devDependencies": {
"@types/ioredis": "^4.17.7",
"@types/jest": "^26.0.15",
"@types/node": "^14.14.6",
"ioredis-mock": "^5.1.0",
"@types/ioredis": "^4.17.8",
"@types/jest": "^26.0.16",
"@types/node": "^14.14.10",
"ioredis-mock": "^5.2.0",
"jest": "^26.6.3",
"node-schedule": "^1.3.2",
"prettier": "^2.1.2",
"ts-jest": "^26.4.3",
"ts-node": "^9.0.0",
"prettier": "^2.2.1",
"ts-jest": "^26.4.4",
"ts-node": "^9.1.0",
"typedoc": "^0.19.2",
"typescript": "^4.0.5"
"typescript": "^4.1.2"
},
"jest": {
"testPathIgnorePatterns": [
Expand Down
2 changes: 1 addition & 1 deletion src/core/multiWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export class MultiWorker extends EventEmitter {
new Promise(async (resolve) => {
await worker.end();
await this.cleanupWorker(worker);
return resolve();
return resolve(null);
})
);
});
Expand Down
2 changes: 1 addition & 1 deletion src/core/scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export class Scheduler extends EventEmitter {
return new Promise((resolve) => {
setTimeout(async () => {
await this.end();
resolve();
resolve(null);
}, this.options.timeout / 2);
});
}
Expand Down
4 changes: 2 additions & 2 deletions src/core/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class Worker extends EventEmitter {
if (this.working === true) {
await new Promise((resolve) => {
setTimeout(() => {
resolve();
resolve(null);
}, this.options.timeout);
});
return this.end();
Expand Down Expand Up @@ -407,7 +407,7 @@ export class Worker extends EventEmitter {
await new Promise((resolve) => {
setTimeout(() => {
this.poll();
resolve();
resolve(null);
}, this.options.timeout);
});
}
Expand Down

0 comments on commit e2ad5ef

Please sign in to comment.