File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,10 @@ const skipBrokenAuthTestBeforeEachHook = function ({ skippedTests } = { skippedT
100
100
101
101
const testConfigBeforeHook = async function ( ) {
102
102
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
104
107
} ) ;
105
108
106
109
await client . db ( 'test' ) . command ( { ping : 1 } ) ;
@@ -179,6 +182,8 @@ function installNodeDNSWorkaroundHooks(type) {
179
182
process . version . startsWith ( 'v19' ) ||
180
183
process . version . startsWith ( 'v20' ) ;
181
184
185
+ console . error ( 'configuring hooks' ) ;
186
+
182
187
if ( ! isAffectedNodeVersion || ! [ 'before' , 'beforeEach' ] . includes ( type ) ) {
183
188
return ;
184
189
}
@@ -191,7 +196,9 @@ function installNodeDNSWorkaroundHooks(type) {
191
196
setDefaultResultOrder ( 'verbatim' ) ;
192
197
} ) ;
193
198
} else if ( type === 'before' ) {
199
+ console . error ( 'hooks set' ) ;
194
200
before ( ( ) => {
201
+ console . error ( 'setting dns resolution ordering' ) ;
195
202
setDefaultResultOrder ( 'ipv4first' ) ;
196
203
} ) ;
197
204
after ( ( ) => {
You can’t perform that action at this time.
0 commit comments