Fix job queue test.

pull/1167/head
Mikunj 5 years ago
parent 9b855a11e1
commit 4a5146025b

@ -45,7 +45,11 @@ describe('JobQueue', () => {
30, 30,
]); ]);
const timeTaken = Date.now() - start; const timeTaken = Date.now() - start;
assert.closeTo(timeTaken, 600, 75, 'Queue was delayed'); assert.isAtLeast(
timeTaken,
600,
'Queue should take atleast 600ms to run.'
);
}); });
it('should return the result of the job', async () => { it('should return the result of the job', async () => {

Loading…
Cancel
Save