Skip to content

Commit e6eeff5

Browse files
committed
use newClient helper
1 parent 3a39a61 commit e6eeff5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/functional/mongo_client_options.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
const test = require('./shared').assert;
33
const setupDatabase = require('./shared').setupDatabase;
44
const expect = require('chai').expect;
5-
const MongoClient = require('../../lib/mongo_client');
65

76
describe('MongoClient Options', function() {
87
before(function() {
@@ -98,7 +97,7 @@ describe('MongoClient Options', function() {
9897
});
9998

10099
it('should default socketTimeout to infinity', function(done) {
101-
const client = new MongoClient(this.configuration.url());
100+
const client = this.configuration.newClient();
102101
client.connect(() => {
103102
expect(client.s.options.socketTimeoutMS).to.deep.equal(0);
104103
for (const connection of client.topology.s.coreTopology.connections()) {

0 commit comments

Comments
 (0)