From 6b75f10d8a7aee8ed38c4c3e383a9ba4de901a97 Mon Sep 17 00:00:00 2001 From: Stefan Budeanu Date: Tue, 27 Oct 2015 22:52:15 -0400 Subject: [PATCH] test: use port number from env in tls socket test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tests normally use common.PORT to allow the user to select which port number to listen on. Hardcoding the port number will cause parallel instances of the test to fail. PR-URL: https://github.com/nodejs/node/pull/3557 Reviewed-By: Ben Noordhuis Reviewed-By: Fedor Indutny Reviewed-By: Johan Bergström --- test/parallel/test-tls-async-cb-after-socket-end.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-tls-async-cb-after-socket-end.js b/test/parallel/test-tls-async-cb-after-socket-end.js index 87258cb32c5085..ea40205bfff06f 100644 --- a/test/parallel/test-tls-async-cb-after-socket-end.js +++ b/test/parallel/test-tls-async-cb-after-socket-end.js @@ -36,9 +36,9 @@ server.on('resumeSession', function(id, cb) { next(); }); -server.listen(1443, function() { +server.listen(common.PORT, function() { var clientOpts = { - port: 1443, + port: common.PORT, rejectUnauthorized: false, session: false };