From 36f16728a520457df4392b5f3c9f45c85d7a2c4d Mon Sep 17 00:00:00 2001 From: Caleb Everett Date: Tue, 24 May 2022 11:03:02 -0700 Subject: [PATCH] test: fix address in use error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Minwoo Jung Reviewed-By: Tobias Nießen Reviewed-By: Akhil Marsonya Reviewed-By: Michael Dawson --- test/parallel/test-domain-dep0097.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-domain-dep0097.js b/test/parallel/test-domain-dep0097.js index 05b5c74b30d98e..7ed823aa4165af 100644 --- a/test/parallel/test-domain-dep0097.js +++ b/test/parallel/test-domain-dep0097.js @@ -13,5 +13,5 @@ process.on('warning', common.mustCall((warning) => { })); domain.create().run(() => { - inspector.open(); + inspector.open(0); });