Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
LiviaMedeiros authored and danielleadams committed Jun 27, 2022
1 parent 3b9d825 commit 31b8d84
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
@@ -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);

0 comments on commit 31b8d84

Please sign in to comment.