From e5171967fb6accbcf3fba450ed9b381bb7cdf08e Mon Sep 17 00:00:00 2001 From: James Tancock Date: Wed, 19 Apr 2017 11:30:58 +0100 Subject: [PATCH] test: remove common.PORT from test-tls-connect Replace common.PORT with 0 to prevent the occurence of any EADDRINUSE errors. Refs: nodejs#12376 --- test/parallel/test-tls-connect.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-tls-connect.js b/test/parallel/test-tls-connect.js index 1908dba6574124..eb638f6eba45e7 100644 --- a/test/parallel/test-tls-connect.js +++ b/test/parallel/test-tls-connect.js @@ -37,7 +37,7 @@ const path = require('path'); const cert = fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem')); const key = fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem')); - const options = {cert: cert, key: key, port: common.PORT}; + const options = {cert: cert, key: key, port: 0}; const conn = tls.connect(options, common.mustNotCall()); conn.on('error', common.mustCall()); @@ -51,7 +51,7 @@ const path = require('path'); const conn = tls.connect({ cert: cert, key: key, - port: common.PORT, + port: 0, ciphers: 'rick-128-roll' }, common.mustNotCall());