Skip to content

Commit 295c964

Browse files
stefanmbjasnell
authored andcommitted
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: #3557 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Fedor Indutny <[email protected]> Reviewed-By: Johan Bergström <[email protected]>
1 parent a8c24ce commit 295c964

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/parallel/test-tls-async-cb-after-socket-end.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ server.on('resumeSession', function(id, cb) {
3636
next();
3737
});
3838

39-
server.listen(1443, function() {
39+
server.listen(common.PORT, function() {
4040
var clientOpts = {
41-
port: 1443,
41+
port: common.PORT,
4242
rejectUnauthorized: false,
4343
session: false
4444
};

0 commit comments

Comments
 (0)