Skip to content

Commit 9799d79

Browse files
committed
test: fix test
1 parent 3497b5c commit 9799d79

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

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

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -182,22 +182,10 @@ describe('class MongoClient', function () {
182182

183183
context('when the value is negative', function () {
184184
const options = { keepAliveInitialDelay: -100 };
185-
let client;
186-
let spy;
187-
188-
beforeEach(async function () {
189-
spy = sinon.spy(Socket.prototype, 'setKeepAlive');
190-
client = this.configuration.newClient(options);
191-
});
192-
193-
afterEach(async function () {
194-
await client?.close();
195-
spy.restore();
196-
});
197185

198186
it('raises an error', function () {
199187
expect(async () => {
200-
await client.connect();
188+
this.configuration.newClient(options);
201189
}).to.throw(/keepAliveInitialDelay can only be a positive int value/);
202190
});
203191
});

0 commit comments

Comments
 (0)