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());