test: use port number from env in tls socket test

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 <info@bnoordhuis.nl>
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
pull/2768/merge
Stefan Budeanu 2015-10-27 22:52:15 -04:00 committed by Ben Noordhuis
parent 5d5a4c4c18
commit c9e682d587
1 changed files with 2 additions and 2 deletions

View File

@ -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
};