Skip to content

Commit

Permalink
test: move test-tls-autoselectfamily-servername to test/internet
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
aduh95 authored and targos committed Mar 14, 2023
1 parent 258d5f7 commit 11509a4
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

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

if (!common.hasCrypto) {
common.skip('missing crypto');
Expand All @@ -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,
});

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

Expand Down

0 comments on commit 11509a4

Please sign in to comment.