Skip to content

Commit

Permalink
Merge pull request #159 from share/poll-delay-fix
Browse files Browse the repository at this point in the history
✅ Fix a slightly flaky test
  • Loading branch information
alecgibson authored Jun 25, 2024
2 parents 92aee77 + 3470ec5 commit 02fbf78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_mongo.js
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ describe('mongo db connection', function() {
db.queryPoll('testcollection', {}, null, function(err, results) {
if (err) return done(err);
expect(results.length).eql(1);
expect((new Date) - timeBeforeQuery).greaterThan(pollDelay);
expect((new Date) - timeBeforeQuery).greaterThanOrEqual(pollDelay);
done();
});
});
Expand Down

0 comments on commit 02fbf78

Please sign in to comment.