mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user