mirror of
https://github.com/nodejs/node.git
synced 2026-12-05 12:58:45 -05:00
test: use --port=0 in debugger tests that do not have to work on 9229
To avoid failures when there is another running process occupying the port 9229 which may happen if there is a stale process, use the --port argument of node-inspect to use a random port in tests that don't have to work on port 9229. The following tests are not touched: - test-debugger-custom-port: tests a specific port - test-debugger-debug-brk: tests a specific port - test-debugger-invalid-args: tests other inspect combinations - test-debugger-pid: node-inspect does not support -p and --port together - test-debugger-launch: tests that default port is 9229 PR-URL: https://github.com/nodejs/node/pull/47274 Refs: https://github.com/nodejs/node/issues/47146 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
9efac64814
commit
4cae786862
26 files changed
+26
-25
No files matched your search
@@ -11,7 +11,7 @@ const assert = require('assert');
|
||||
// List scripts.
|
||||
{
|
||||
const script = fixtures.path('debugger', 'three-lines.js');
|
||||
const cli = startCLI([script]);
|
||||
const cli = startCLI(['--port=0', script]);
|
||||
|
||||
(async () => {
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user