Permalink
Browse files

Tests: test `lastRunAt` not `nextRunAt` for FIFO tests

  • Loading branch information...
simison committed Jun 9, 2018
1 parent fabf722 commit 18dd9be3c89bbdd19514e6cf5562f6d37abea8ea
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/job.js
@@ -841,7 +841,7 @@ describe('Job', () => {
const checkResultsPromise = new Promise(resolve =>
agenda.on('start:fifo-priority', job => {
priorities.push(job.attrs.priority);
times.push(new Date(job.attrs.nextRunAt).getTime());
times.push(new Date(job.attrs.lastRunAt).getTime());
if (priorities.length !== 3 || times.length !== 3) {
return;
}

0 comments on commit 18dd9be

Please sign in to comment.