From 918f2a88f16cdd0188e7f7386b4f5c316ad7fa34 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sat, 11 Mar 2023 14:52:43 +0100 Subject: [PATCH] test: move `test-tls-autoselectfamily-servername` to `test/internet` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit And switch from `google.com` to `nodejs.org`. PR-URL: https://github.com/nodejs/node/pull/47029 Reviewed-By: Moshe Atlow Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Richard Lau Reviewed-By: Paolo Insogna Reviewed-By: Tobias Nießen --- .../test-tls-autoselectfamily-servername.js | 37 ------------------- 1 file changed, 37 deletions(-) delete mode 100644 test/parallel/test-tls-autoselectfamily-servername.js diff --git a/test/parallel/test-tls-autoselectfamily-servername.js b/test/parallel/test-tls-autoselectfamily-servername.js deleted file mode 100644 index f2b0f7b3499b85..00000000000000 --- a/test/parallel/test-tls-autoselectfamily-servername.js +++ /dev/null @@ -1,37 +0,0 @@ -'use strict'; - -const common = require('../common'); - -if (!common.hasCrypto) { - common.skip('missing crypto'); -} - -const { setDefaultAutoSelectFamilyAttemptTimeout } = require('net'); -const { connect } = require('tls'); - -// Some of the windows machines in the CI need more time to establish connection -setDefaultAutoSelectFamilyAttemptTimeout(common.platformTimeout(common.isWindows ? 1500 : 250)); - -// Test that TLS connecting works without autoSelectFamily -{ - const socket = connect({ - host: 'google.com', - port: 443, - servername: 'google.com', - autoSelectFamily: false, - }); - - socket.on('secureConnect', common.mustCall(() => socket.end())); -} - -// Test that TLS connecting works with autoSelectFamily -{ - const socket = connect({ - host: 'google.com', - port: 443, - servername: 'google.com', - autoSelectFamily: true, - }); - - socket.on('secureConnect', common.mustCall(() => socket.end())); -}