Skip to content

Commit 11ad184

Browse files
committed
chore: use handshake instead of ping
1 parent b44db82 commit 11ad184

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sdam/topology.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ export class Topology extends TypedEventEmitter<TopologyEvents> {
458458
waitQueueTimeoutMS: this.client.s.options.waitQueueTimeoutMS
459459
});
460460
const selectServerOptions = {
461-
operationName: 'ping',
461+
operationName: 'handshake',
462462
...options,
463463
timeoutContext
464464
};

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
Topology,
1414
TopologyType
1515
} from '../../mongodb';
16-
import { type FailPoint, sleep } from '../../tools/utils';
16+
import { sleep } from '../../tools/utils';
1717

1818
describe('When executing an operation for the first time', () => {
1919
let client: MongoClient;

0 commit comments

Comments
 (0)