summaryrefslogtreecommitdiff
path: root/test/parallel/test-tls-handshake-error.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-tls-handshake-error.js')
-rw-r--r--test/parallel/test-tls-handshake-error.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-tls-handshake-error.js b/test/parallel/test-tls-handshake-error.js
index 3bb583bb2c..1b191d13a3 100644
--- a/test/parallel/test-tls-handshake-error.js
+++ b/test/parallel/test-tls-handshake-error.js
@@ -19,9 +19,9 @@ var server = tls.createServer({
cert: fs.readFileSync(common.fixturesDir + '/keys/agent1-cert.pem'),
rejectUnauthorized: true
}, function(c) {
-}).listen(common.PORT, function() {
+}).listen(0, function() {
var c = tls.connect({
- port: common.PORT,
+ port: this.address().port,
ciphers: 'RC4'
}, function() {
assert(false, 'should not be called');