rename the worker timeout error

This commit is contained in:
2016-07-11 15:48:31 -07:00
parent 8cd2fde3a8
commit c758fb55a6
3 changed files with 4 additions and 4 deletions

View File

@@ -738,7 +738,7 @@ describe('Worker class', function () {
let performJobPromise;
// check for timeout event
worker.once(constants.EVENT_WORKER_JOB_TIMEOUT_ERROR, (err) => {
worker.once(constants.EVENT_WORKER_JOB_TIMEOUT, (err) => {
try {
expect(err).to.have.property('error');
expect(err).to.have.property('job');