Skip to content

Commit 901f878

Browse files
committed
test: remove lower bound
1 parent 2283c38 commit 901f878

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

test/integration/node-specific/convert_socket_errors.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Duplex } from 'node:stream';
33
import { expect } from 'chai';
44
import * as sinon from 'sinon';
55

6-
import { Connection, ConnectionPool, type MongoClient, MongoNetworkError, ns } from '../../mongodb';
6+
import { Connection, type MongoClient, MongoNetworkError, ns } from '../../mongodb';
77
import { clearFailPoint, configureFailPoint } from '../../tools/utils';
88

99
describe('Socket Errors', () => {

test/integration/node-specific/resource_clean_up.test.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,7 @@ describe('Driver Resources', () => {
107107
await sleep(10);
108108
const promiseCountAfter = v8.queryObjects(Promise, { format: 'count' });
109109

110-
const offset = process.platform === 'win32' ? 30 : 5;
111-
expect(promiseCountAfter).to.be.within(
112-
promiseCountBefore - offset,
113-
promiseCountBefore + offset
114-
);
110+
expect(promiseCountAfter).to.be.lessThan(promiseCountBefore + 5);
115111
});
116112
});
117113
});

0 commit comments

Comments
 (0)