Skip to content

Commit 11509a4

Browse files
aduh95targos
authored andcommitted
test: move test-tls-autoselectfamily-servername to test/internet
And switch from `google.com` to `nodejs.org`. PR-URL: #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>
1 parent 258d5f7 commit 11509a4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test/parallel/test-tls-autoselectfamily-servername.js test/internet/test-tls-autoselectfamily-servername.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

33
const common = require('../common');
4+
const { addresses: { INET_HOST } } = require('../common/internet');
45

56
if (!common.hasCrypto) {
67
common.skip('missing crypto');
@@ -15,9 +16,9 @@ setDefaultAutoSelectFamilyAttemptTimeout(common.platformTimeout(common.isWindows
1516
// Test that TLS connecting works without autoSelectFamily
1617
{
1718
const socket = connect({
18-
host: 'google.com',
19+
host: INET_HOST,
1920
port: 443,
20-
servername: 'google.com',
21+
servername: INET_HOST,
2122
autoSelectFamily: false,
2223
});
2324

@@ -27,9 +28,9 @@ setDefaultAutoSelectFamilyAttemptTimeout(common.platformTimeout(common.isWindows
2728
// Test that TLS connecting works with autoSelectFamily
2829
{
2930
const socket = connect({
30-
host: 'google.com',
31+
host: INET_HOST,
3132
port: 443,
32-
servername: 'google.com',
33+
servername: INET_HOST,
3334
autoSelectFamily: true,
3435
});
3536

0 commit comments

Comments
 (0)