diff options
Diffstat (limited to 'test/parallel/test-http-expect-handling.js')
-rw-r--r-- | test/parallel/test-http-expect-handling.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-http-expect-handling.js b/test/parallel/test-http-expect-handling.js index fd88ae0ded..f1f1284731 100644 --- a/test/parallel/test-http-expect-handling.js +++ b/test/parallel/test-http-expect-handling.js @@ -13,11 +13,11 @@ const s = http.createServer(function(req, res) { throw new Error('this should never be executed'); }); -s.listen(common.PORT, nextTest); +s.listen(0, nextTest); function nextTest() { const options = { - port: common.PORT, + port: s.address().port, headers: { 'Expect': 'meoww' } }; |