Skip to content

Commit e08206a

Browse files
fix threshold
1 parent 699e640 commit e08206a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integration/crud/explain.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ describe('CRUD API explain option', function () {
352352
);
353353

354354
expect(result).to.be.instanceOf(MongoOperationTimeoutError);
355-
expect(duration).to.be.within(1000, 1000 + 100);
355+
expect(duration).to.be.within(1000 - 100, 1000 + 100);
356356
});
357357

358358
test('the explain command has the calculated maxTimeMS value attached', async function () {
@@ -415,7 +415,7 @@ describe('CRUD API explain option', function () {
415415
);
416416

417417
expect(result).to.be.instanceOf(MongoOperationTimeoutError);
418-
expect(duration).to.be.within(1000, 1000 + 100);
418+
expect(duration).to.be.within(1000 - 100, 1000 + 100);
419419
});
420420

421421
test('the explain command has the calculated maxTimeMS value attached', async function () {

0 commit comments

Comments
 (0)