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 <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>
  • 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.