test: use random port in test-inspector-debug-brk-flag

Which makes it possible to run it in parallel.

PR-URL: https://github.com/nodejs/node/pull/47412
Refs: https://github.com/nodejs/node/issues/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>
This commit is contained in:
Joyee Cheung authored and Moshe Atlow committed 2023-07-07 00:06:03 +03:00
1 parent a2e4643981
commit e97ceeca69
1 file changed
+1 -1
@@ -27,7 +27,7 @@ async function testBreakpointOnStart(session) {
}
async function runTests() {
const child = new NodeInstance(['--inspect', '--inspect-brk']);
const child = new NodeInstance(['--inspect-brk=0']);
const session = await child.connectInspectorSession();
await testBreakpointOnStart(session);