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: nodejs/node#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 guangwong committed Oct 10, 2022
1 parent f6bcb64 commit 62ecf65
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 62ecf65

Please sign in to comment.