diff options
author | Livia Medeiros <74449973+LiviaMedeiros@users.noreply.github.com> | 2022-04-27 02:56:03 +0300 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2022-04-28 07:57:25 +0300 |
commit | 0725064695b17cf642a246055b4ed5606df71348 (patch) | |
tree | f89792826ae8fabaad9bc20e25d5e6e81fd5af97 /test | |
parent | 48bbb73f36f30b5db2e60f9dfde8497cb3c74452 (diff) |
test: fix port in net-perf_hooks
PR-URL: https://github.com/nodejs/node/pull/42761
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-net-perf_hooks.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-net-perf_hooks.js b/test/parallel/test-net-perf_hooks.js index cbaaac135b9..6b0d13aab27 100644 --- a/test/parallel/test-net-perf_hooks.js +++ b/test/parallel/test-net-perf_hooks.js @@ -22,7 +22,7 @@ obs.observe({ type: 'net' }); socket.destroy(); })); - server.listen(8080, common.mustCall(async () => { + server.listen(0, common.mustCall(async () => { await new Promise((resolve, reject) => { const socket = net.connect(server.address().port); socket.on('end', resolve); |