From 29f4e05d88c01affa8d09c1c16499ff5405d26d9 Mon Sep 17 00:00:00 2001 From: Artur G Vieira Date: Tue, 9 May 2017 06:15:36 +0000 Subject: [PATCH] test: replace port in https address family test Replaced common.PORT with zero in the following test. test-https-connect-address-family.js Refs: nodejs#12376 --- test/parallel/test-https-connect-address-family.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-https-connect-address-family.js b/test/parallel/test-https-connect-address-family.js index ab13e060be06ac..e7f41ce861cb27 100644 --- a/test/parallel/test-https-connect-address-family.js +++ b/test/parallel/test-https-connect-address-family.js @@ -19,10 +19,10 @@ function runTest() { https.createServer({ ciphers }, common.mustCall(function(req, res) { this.close(); res.end(); - })).listen(common.PORT, '::1', common.mustCall(function() { + })).listen(0, '::1', common.mustCall(function() { const options = { host: 'localhost', - port: common.PORT, + port: this.address().port, family: 6, ciphers: ciphers, rejectUnauthorized: false,