Skip to content

Commit dc2c1b7

Browse files
add family:4 to util client in tests
1 parent b0d8b9e commit dc2c1b7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/tools/runner/hooks/configuration.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,10 @@ const skipBrokenAuthTestBeforeEachHook = function ({ skippedTests } = { skippedT
100100

101101
const testConfigBeforeHook = async function () {
102102
const client = new MongoClient(loadBalanced ? SINGLE_MONGOS_LB_URI : MONGODB_URI, {
103-
...getEnvironmentalOptions()
103+
...getEnvironmentalOptions(),
104+
// TODO(NODE-4884): once happy eyeballs support is added, we no longer need to set
105+
// the default dns resolution order for CI
106+
family: 4
104107
});
105108

106109
await client.db('test').command({ ping: 1 });
@@ -179,6 +182,8 @@ function installNodeDNSWorkaroundHooks(type) {
179182
process.version.startsWith('v19') ||
180183
process.version.startsWith('v20');
181184

185+
console.error('configuring hooks');
186+
182187
if (!isAffectedNodeVersion || !['before', 'beforeEach'].includes(type)) {
183188
return;
184189
}
@@ -191,7 +196,9 @@ function installNodeDNSWorkaroundHooks(type) {
191196
setDefaultResultOrder('verbatim');
192197
});
193198
} else if (type === 'before') {
199+
console.error('hooks set');
194200
before(() => {
201+
console.error('setting dns resolution ordering');
195202
setDefaultResultOrder('ipv4first');
196203
});
197204
after(() => {

0 commit comments

Comments
 (0)