From 1a78632cd37662777fa049e6a156c0654fa0da04 Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Wed, 5 Apr 2023 01:18:30 +0200 Subject: [PATCH] test: use random port in NodeInstance.startViaSignal() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Which makes it possible to run the tests that use this in parallel. PR-URL: https://github.com/nodejs/node/pull/47412 Refs: https://github.com/nodejs/node/issues/47146 Reviewed-By: Yagiz Nizipli Reviewed-By: Moshe Atlow Reviewed-By: Michaƫl Zasso Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Rich Trott --- test/common/inspector-helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/common/inspector-helper.js b/test/common/inspector-helper.js index 48c9e5f1d17141..359f586344cb9e 100644 --- a/test/common/inspector-helper.js +++ b/test/common/inspector-helper.js @@ -372,7 +372,7 @@ class NodeInstance extends EventEmitter { static async startViaSignal(scriptContents) { const instance = new NodeInstance( - ['--expose-internals'], + ['--expose-internals', '--inspect-port=0'], `${scriptContents}\nprocess._rawDebug('started');`, undefined); const msg = 'Timed out waiting for process to start'; while (await fires(instance.nextStderrString(), msg, TIMEOUT) !== 'started');