Skip to content

Commit ec957ba

Browse files
committed
test: deflake test-config-file
Port 9229 may already be used by another process. Use a random available one.
1 parent 910a8af commit ec957ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/parallel/test-config-file.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ test('--inspect=true should be parsed correctly', { skip: !process.features.insp
239239
'--no-warnings',
240240
'--experimental-config-file',
241241
fixtures.path('rc/inspect-true.json'),
242+
'--inspect-port', '0',
242243
'-p', 'require("node:inspector").url()',
243244
]);
244245
match(result.stderr, /^Debugger listening on (ws:\/\/[^\s]+)/);

0 commit comments

Comments
 (0)