Skip to content

Commit 03fd5ae

Browse files
authoredMar 11, 2023
test: move test-tls-autoselectfamily-servername to test/internet
And switch from `google.com` to `nodejs.org`. PR-URL: #47029 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Paolo Insogna <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent 10c1ab0 commit 03fd5ae

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)
Please sign in to comment.