test: move test-tls-autoselectfamily-servername to test/internet

And switch from `google.com` to `nodejs.org`.

PR-URL: https://github.com/nodejs/node/pull/47029
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
This commit is contained in:
Antoine du Hamel
2023-03-11 14:52:43 +01:00
committed by GitHub
parent 10c1ab00fd
commit 03fd5ae04d

View File

@@ -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,
});