diff --git a/.travis.yml b/.travis.yml index 2b64e02..8848f3e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,4 @@ language: node_js -sudo: required node_js: - 10 - 12 diff --git a/test/job.test.ts b/test/job.test.ts index ea5f775..4ee17fa 100644 --- a/test/job.test.ts +++ b/test/job.test.ts @@ -1089,11 +1089,12 @@ describe('Job', () => { const now = new Date(); const results: number[] = []; - agenda.define('priority', (job, cb) => cb(), { concurrency: 1 }); + agenda.define('priority', (job, cb) => setTimeout(cb, 10), { concurrency: 1 }); const checkResultsPromise = new Promise(resolve => agenda.on('start:priority', job => { results.push(job.attrs.priority); + console.log('RESULTS',results); if (results.length !== 3) { return; }