From d31a41149df64ea08a04f474f41d176707e5d6ce Mon Sep 17 00:00:00 2001 From: mkamakura Date: Sat, 12 Nov 2016 16:53:23 +0900 Subject: [PATCH] test: fix test-tls-connect-address-family MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use port 0 instead of common.PORT. PR-URL: https://github.com/nodejs/node/pull/9573 Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Michaƫl Zasso Reviewed-By: Santiago Gimeno --- test/parallel/test-tls-connect-address-family.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-tls-connect-address-family.js b/test/parallel/test-tls-connect-address-family.js index 35216d91f6e49f..f22831f395a8dd 100644 --- a/test/parallel/test-tls-connect-address-family.js +++ b/test/parallel/test-tls-connect-address-family.js @@ -18,10 +18,10 @@ function runTest() { const ciphers = 'AECDH-NULL-SHA'; tls.createServer({ ciphers }, common.mustCall(function() { this.close(); - })).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,