Skip to content

chore(NODE-4884): remove unnecessary ip address family specification in tests #4590

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ describe('Atlas Data Lake - prose', function () {
* If a driver constructs and issues killCursors commands in other ways (e.g. public API), this test MUST be adapted to test all such code paths.
*/
it('1. Test that the driver properly constructs and issues a killCursors command to Atlas Data Lake.', async function () {
// TODO(NODE-4884): once happy eyeballs support is added, we no longer need to set the default dns resolution order for CI
client = new MongoClient('mongodb://mhuser:pencil@localhost', { family: 4 });
client = new MongoClient('mongodb://mhuser:pencil@localhost');
const db = client.db('admin');
await db.command({ killCursors: 'kill_cursor_collection' });
});
Expand All @@ -41,8 +40,7 @@ describe('Atlas Data Lake - prose', function () {
* For these tests, create a MongoClient using a valid connection string without auth credentials and execute a ping command.
*/
it('2. Test that the driver can establish a connection with Atlas Data Lake without authentication.', async function () {
// TODO(NODE-4884): once happy eyeballs support is added, we no longer need to set the default dns resolution order for CI
client = new MongoClient('mongodb://localhost', { family: 4 });
client = new MongoClient('mongodb://localhost');
const db = client.db('admin');
await db.command({ ping: 1 });
});
Expand All @@ -52,10 +50,7 @@ describe('Atlas Data Lake - prose', function () {
* from the drivers-evergreen-tools ADL configuration and execute a ping command.
*/
it('3a. Test that the driver can establish a connection with Atlas Data Lake with authentication. (SCRAM-SHA-1)', async function () {
// TODO(NODE-4884): once happy eyeballs support is added, we no longer need to set the default dns resolution order for CI
client = new MongoClient('mongodb://mhuser:pencil@localhost?authMechanism=SCRAM-SHA-1', {
family: 4
});
client = new MongoClient('mongodb://mhuser:pencil@localhost?authMechanism=SCRAM-SHA-1');
const db = client.db('admin');
await db.command({ ping: 1 });
await db.command({ killCursors: 'kill_cursor_collection' });
Expand All @@ -65,10 +60,7 @@ describe('Atlas Data Lake - prose', function () {
* Repeat the authentication test using SCRAM-SHA-256.
*/
it('3b. Test that the driver can establish a connection with Atlas Data Lake with authentication. (SCRAM-SHA-256)', async function () {
// TODO(NODE-4884): once happy eyeballs support is added, we no longer need to set the default dns resolution order for CI
client = new MongoClient('mongodb://mhuser:pencil@localhost?authMechanism=SCRAM-SHA-256', {
family: 4
});
client = new MongoClient('mongodb://mhuser:pencil@localhost?authMechanism=SCRAM-SHA-256');
const db = client.db('admin');
await db.command({ ping: 1 });
await db.command({ killCursors: 'kill_cursor_collection' });
Expand Down
10 changes: 4 additions & 6 deletions test/tools/runner/hooks/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,10 @@ const testConfigBeforeHook = async function () {
return;
}

const client = new MongoClient(loadBalanced ? SINGLE_MONGOS_LB_URI : MONGODB_URI, {
...getEnvironmentalOptions(),
// TODO(NODE-4884): once happy eyeballs support is added, we no longer need to set
// the default dns resolution order for CI
family: 4
});
const client = new MongoClient(
loadBalanced ? SINGLE_MONGOS_LB_URI : MONGODB_URI,
getEnvironmentalOptions()
);

await client.db('test').command({ ping: 1 });

Expand Down