Skip to content

Commit 5e36f7a

Browse files
committed
fix socks5 tests
1 parent 1bb0a8c commit 5e36f7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/manual/socks5.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ describe('Socks5 Connectivity', function () {
302302
async function testConnection(connectionString, clientOptions) {
303303
const client = new MongoClient(connectionString, clientOptions);
304304
let topologyType;
305-
client.on('topologyDescriptionChanged', ev => (topologyType = ev.newDescription.type));
305+
client.on('topologyDescriptionChanged', ev => (topologyType = ev.previousDescription.type));
306306

307307
try {
308308
await client.connect();

0 commit comments

Comments
 (0)