Skip to content

Commit

Permalink
test: fix address in use error
Browse files Browse the repository at this point in the history
test-domain-dep0097.js was sporadically failing because it is a parallel
test and uses opens a default inspector port.

This commit changes to bind to a random free port

PR-URL: nodejs/node#43199
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
  • Loading branch information
everett1992 authored and guangwong committed Oct 10, 2022
1 parent 85c5d76 commit 0f9684b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-domain-dep0097.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ process.on('warning', common.mustCall((warning) => {
}));

domain.create().run(() => {
inspector.open();
inspector.open(0);
});

0 comments on commit 0f9684b

Please sign in to comment.