From 11509a4a2d29241a90a90a312d22da5cd48a5b5b Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sat, 11 Mar 2023 14:52:43 +0100 Subject: [PATCH] test: move `test-tls-autoselectfamily-servername` to `test/internet` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit And switch from `google.com` to `nodejs.org`. PR-URL: https://github.com/nodejs/node/pull/47029 Reviewed-By: Moshe Atlow Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Richard Lau Reviewed-By: Paolo Insogna Reviewed-By: Tobias Nießen --- .../test-tls-autoselectfamily-servername.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) rename test/{parallel => internet}/test-tls-autoselectfamily-servername.js (83%) 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, });