diff options
Diffstat (limited to 'test/parallel/test-https-agent-sni.js')
-rw-r--r-- | test/parallel/test-https-agent-sni.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-https-agent-sni.js b/test/parallel/test-https-agent-sni.js index b8f6c8cde8..4174fd0b9c 100644 --- a/test/parallel/test-https-agent-sni.js +++ b/test/parallel/test-https-agent-sni.js @@ -27,7 +27,7 @@ const server = https.Server(options, function(req, res) { res.end('hello world'); }); -server.listen(common.PORT, function() { +server.listen(0, function() { function expectResponse(id) { return common.mustCall(function(res) { res.resume(); @@ -43,7 +43,7 @@ server.listen(common.PORT, function() { agent: agent, path: '/', - port: common.PORT, + port: this.address().port, host: '127.0.0.1', servername: 'sni.' + j, rejectUnauthorized: false |