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 targos committed Apr 28, 2022
1 parent 48bbb73 commit 0725064
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 0725064

Please sign in to comment.