Skip to content

Commit

Permalink
Fix lockedAt date comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Lush committed Jul 26, 2017
1 parent eef52d1 commit 4cb60cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/job.js
Expand Up @@ -507,7 +507,7 @@ describe('agenda', function() {
setTimeout(function() {
jobs.stop(function(err, res) {
jobs._collection.findOne({name: 'longRunningJob'}, function(err, job) {
expect(job.lockedAt).to.be(jobs._notLocked);
expect(job.lockedAt.getTime()).to.be(jobs._notLocked.getTime());
done();
});
});
Expand Down

0 comments on commit 4cb60cb

Please sign in to comment.