From 53fb735bfaaa0b73ec26b4bc87e8f504c759db13 Mon Sep 17 00:00:00 2001 From: Livia Medeiros <74449973+LiviaMedeiros@users.noreply.github.com> Date: Wed, 27 Apr 2022 07:56:03 +0800 Subject: [PATCH] test: fix port in net-perf_hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/42761 Reviewed-By: Tobias Nießen Reviewed-By: Darshan Sen Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- test/parallel/test-net-perf_hooks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-net-perf_hooks.js b/test/parallel/test-net-perf_hooks.js index cbaaac135b92d8..6b0d13aab27019 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);