Skip to content

Commit 5fb852b

Browse files
committed
chore: remove last modern connection references
1 parent de28020 commit 5fb852b

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

test/benchmarks/driverBench/common.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ const { Readable } = require('stream');
66
const { pipeline } = require('stream/promises');
77
const { MongoClient } = require('../../..');
88
const { GridFSBucket } = require('../../..');
9-
// eslint-disable-next-line no-restricted-modules
10-
const { ModernConnection } = require('../../../lib/cmap/connection');
11-
129
// eslint-disable-next-line no-restricted-modules
1310
const { MONGODB_ERROR_CODES } = require('../../../lib/error');
1411

@@ -27,9 +24,7 @@ function loadSpecString(filePath) {
2724
}
2825

2926
function makeClient() {
30-
this.client = new MongoClient(process.env.MONGODB_URI || 'mongodb://127.0.0.1:27017', {
31-
connectionType: ModernConnection
32-
});
27+
this.client = new MongoClient(process.env.MONGODB_URI || 'mongodb://127.0.0.1:27017');
3328
}
3429

3530
function connectClient() {

test/benchmarks/driverBench/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ const platform = { name: hw[0].model, cores: hw.length, ram: `${ram}GB` };
1818

1919
const systemInfo = () =>
2020
[
21-
`ModernConnection`,
2221
`\n- cpu: ${platform.name}`,
2322
`- cores: ${platform.cores}`,
2423
`- arch: ${os.arch()}`,

test/tools/runner/config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import * as url from 'url';
66
import {
77
type AuthMechanism,
88
HostAddress,
9-
ModernConnection,
109
MongoClient,
1110
type ServerApi,
1211
TopologyType,

0 commit comments

Comments
 (0)