diff --git a/test/parallel/test-tls-autoselectfamily-servername.js b/test/internet/test-tls-autoselectfamily-servername.js similarity index 83% rename from test/parallel/test-tls-autoselectfamily-servername.js rename to test/internet/test-tls-autoselectfamily-servername.js index f2b0f7b3499b85..ae53875b677821 100644 --- a/test/parallel/test-tls-autoselectfamily-servername.js +++ b/test/internet/test-tls-autoselectfamily-servername.js @@ -1,6 +1,7 @@ 'use strict'; const common = require('../common'); +const { addresses: { INET_HOST } } = require('../common/internet'); if (!common.hasCrypto) { common.skip('missing crypto'); @@ -15,9 +16,9 @@ setDefaultAutoSelectFamilyAttemptTimeout(common.platformTimeout(common.isWindows // Test that TLS connecting works without autoSelectFamily { const socket = connect({ - host: 'google.com', + host: INET_HOST, port: 443, - servername: 'google.com', + servername: INET_HOST, autoSelectFamily: false, }); @@ -27,9 +28,9 @@ setDefaultAutoSelectFamilyAttemptTimeout(common.platformTimeout(common.isWindows // Test that TLS connecting works with autoSelectFamily { const socket = connect({ - host: 'google.com', + host: INET_HOST, port: 443, - servername: 'google.com', + servername: INET_HOST, autoSelectFamily: true, });