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 <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • 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
Original file line number Diff line number Diff line change
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.