Skip to content

Commit a2e4643

Browse files
joyeecheungMoLow
authored andcommitted
test: use random port in NodeInstance.startViaSignal()
Which makes it possible to run the tests that use this in parallel. PR-URL: #47412 Refs: #47146 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 670f9a5 commit a2e4643

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎test/common/inspector-helper.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ class NodeInstance extends EventEmitter {
372372

373373
staticasyncstartViaSignal(scriptContents){
374374
constinstance=newNodeInstance(
375-
['--expose-internals'],
375+
['--expose-internals','--inspect-port=0'],
376376
`${scriptContents}\nprocess._rawDebug('started');`,undefined);
377377
constmsg='Timed out waiting for process to start';
378378
while(awaitfires(instance.nextStderrString(),msg,TIMEOUT)!=='started');

0 commit comments

Comments
 (0)