We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bb0a8c commit 5e36f7aCopy full SHA for 5e36f7a
test/manual/socks5.test.ts
@@ -302,7 +302,7 @@ describe('Socks5 Connectivity', function () {
302
async function testConnection(connectionString, clientOptions) {
303
const client = new MongoClient(connectionString, clientOptions);
304
let topologyType;
305
- client.on('topologyDescriptionChanged', ev => (topologyType = ev.newDescription.type));
+ client.on('topologyDescriptionChanged', ev => (topologyType = ev.previousDescription.type));
306
307
try {
308
await client.connect();
0 commit comments