summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-expect-handling.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-http-expect-handling.js')
-rw-r--r--test/parallel/test-http-expect-handling.js4
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' }
};