diff --git a/test/simple/test-tls-securepair-server.js b/test/simple/test-tls-securepair-server.js index 0131b8c517..4f10488949 100644 --- a/test/simple/test-tls-securepair-server.js +++ b/test/simple/test-tls-securepair-server.js @@ -94,9 +94,9 @@ var sentWorld = false; var gotWorld = false; var opensslExitCode = -1; -server.listen(8000, function() { +server.listen(common.PORT, function() { // To test use: openssl s_client -connect localhost:8000 - var client = spawn('openssl', ['s_client', '-connect', '127.0.0.1:8000']); + var client = spawn('openssl', ['s_client', '-connect', '127.0.0.1:' + common.PORT]); var out = '';