diff --git a/test/parallel/test-tls-connect.js b/test/parallel/test-tls-connect.js index 4b938e49bfc8cb..a157b5cb3929c6 100644 --- a/test/parallel/test-tls-connect.js +++ b/test/parallel/test-tls-connect.js @@ -35,7 +35,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()); @@ -49,7 +49,7 @@ const path = require('path'); const conn = tls.connect({ cert: cert, key: key, - port: common.PORT, + port: 0, ciphers: 'rick-128-roll' }, common.mustNotCall());