test: fix address in use error

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: https://github.com/nodejs/node/pull/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>
This commit is contained in:
Caleb Everett authored and Danielle Adams committed 2022-06-14 08:16:11 -04:00
1 parent 64edd6cbc3
commit 71802c32d0
1 file changed
+1 -1
+1 -1
View File
@@ -13,5 +13,5 @@ process.on('warning', common.mustCall((warning) => {
}));
domain.create().run(() => {
inspector.open();
inspector.open(0);
});