Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 11509a4

Browse filesBrowse 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
Copy full SHA for 11509a4

File tree

Expand file treeCollapse file tree

1 file changed

+5
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-4
lines changed
Open diff view settings
Collapse file

‎…/test-tls-autoselectfamily-servername.js‎ ‎…/test-tls-autoselectfamily-servername.js‎test/parallel/test-tls-autoselectfamily-servername.js renamed to test/internet/test-tls-autoselectfamily-servername.js test/parallel/test-tls-autoselectfamily-servername.js renamed to test/internet/test-tls-autoselectfamily-servername.js

Copy file name to clipboardExpand all lines: test/internet/test-tls-autoselectfamily-servername.js
+5-4Lines changed: 5 additions & 4 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.