Skip to content

Commit

Permalink
test: fix port in net-perf_hooks
Browse files Browse the repository at this point in the history
PR-URL: #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>
  • Loading branch information
LiviaMedeiros authored and juanarbol committed May 31, 2022
1 parent c4b1610 commit 6f0edeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-net-perf_hooks.js
Expand Up @@ -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);
Expand Down

0 comments on commit 6f0edeb

Please sign in to comment.