Skip to content

Commit 924287c

Browse files
committed
fix(test): debug failed priority test
1 parent e92cd85 commit 924287c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
language: node_js
2-
sudo: required
32
node_js:
43
- 10
54
- 12

test/job.test.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1089,11 +1089,12 @@ describe('Job', () => {
10891089
const now = new Date();
10901090
const results: number[] = [];
10911091

1092-
agenda.define('priority', (job, cb) => cb(), { concurrency: 1 });
1092+
agenda.define('priority', (job, cb) => setTimeout(cb, 10), { concurrency: 1 });
10931093

10941094
const checkResultsPromise = new Promise(resolve =>
10951095
agenda.on('start:priority', job => {
10961096
results.push(job.attrs.priority);
1097+
console.log('RESULTS',results);
10971098
if (results.length !== 3) {
10981099
return;
10991100
}

0 commit comments

Comments
 (0)