Skip to content

Commit 428589a

Browse files
committed
chore: comment on server selection
1 parent eb7e1b1 commit 428589a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,8 @@ describe('MongoClient.close() Integration', () => {
441441
// 27017 localhost.test.build.10gen.cc.
442442

443443
const client = new MongoClient(SRV_CONNECTION_STRING, {
444-
serverSelectionTimeoutMS: 2000,
445-
tls: false
444+
serverSelectionTimeoutMS: 2000, // if something changes make this test fail faster than 30s (connect() will reject)
445+
tls: false // srv automatically sets tls to true, so we have to set it to false here.
446446
});
447447
await client.connect();
448448
// the current expected behavior is that _timeout is set to undefined until SRV polling starts

0 commit comments

Comments
 (0)