GeezerVison is showing github.com — test: use --port=0 in debugger tests that do not have to work on 9229 · nodejs/node@041885e
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: test/sequential/test-debugger-auto-resume.mjs +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -21,7 +21,7 @@ addLibraryPath(process.env); | 21 | 21 | }; | 22 | 22 | env.NODE_INSPECT_RESUME_ON_START = '1'; | 23 | 23 |
| 24 | | - const cli = startCLI([script], [], { | | 24 | + const cli = startCLI(['--port=0', script], [], { | 25 | 25 | env, | 26 | 26 | }); | 27 | 27 |
| |
Collapse file Copy file name to clipboardExpand all lines: test/sequential/test-debugger-backtrace.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -13,7 +13,7 @@ const path = require('path'); | 13 | 13 | { | 14 | 14 | const scriptFullPath = fixtures.path('debugger', 'backtrace.js'); | 15 | 15 | const script = path.relative(process.cwd(), scriptFullPath); | 16 | | - const cli = startCLI([script]); | | 16 | + const cli = startCLI(['--port=0', script]); | 17 | 17 |
| 18 | 18 | async function runTest() { | 19 | 19 | try { | |
Collapse file Copy file name to clipboardExpand all lines: test/sequential/test-debugger-break.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -11,7 +11,7 @@ const path = require('path'); | 11 | 11 |
| 12 | 12 | const scriptFullPath = fixtures.path('debugger', 'break.js'); | 13 | 13 | const script = path.relative(process.cwd(), scriptFullPath); | 14 | | -const cli = startCLI([script]); | | 14 | +const cli = startCLI(['--port=0', script]); | 15 | 15 |
| 16 | 16 | (async () => { | 17 | 17 | await cli.waitForInitialBreak(); | |
Collapse file Copy file name to clipboardExpand all lines: test/sequential/test-debugger-breakpoint-exists.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -9,7 +9,7 @@ const startCLI = require('../common/debugger'); | 9 | 9 |
| 10 | 10 | // Test for "Breakpoint at specified location already exists" error. | 11 | 11 | const script = fixtures.path('debugger', 'three-lines.js'); | 12 | | -const cli = startCLI([script]); | | 12 | +const cli = startCLI(['--port=0', script]); | 13 | 13 |
| 14 | 14 | (async () => { | 15 | 15 | try { | |
Collapse file Copy file name to clipboardExpand all lines: test/sequential/test-debugger-clear-breakpoints.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -13,7 +13,7 @@ const path = require('path'); | 13 | 13 | { | 14 | 14 | const scriptFullPath = fixtures.path('debugger', 'break.js'); | 15 | 15 | const script = path.relative(process.cwd(), scriptFullPath); | 16 | | - const cli = startCLI([script]); | | 16 | + const cli = startCLI(['--port=0', script]); | 17 | 17 |
| 18 | 18 | function onFatal(error) { | 19 | 19 | cli.quit(); | |
Collapse file Copy file name to clipboardExpand all lines: test/sequential/test-debugger-exceptions.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -13,7 +13,7 @@ const path = require('path'); | 13 | 13 | { | 14 | 14 | const scriptFullPath = fixtures.path('debugger', 'exceptions.js'); | 15 | 15 | const script = path.relative(process.cwd(), scriptFullPath); | 16 | | - const cli = startCLI([script]); | | 16 | + const cli = startCLI(['--port=0', script]); | 17 | 17 |
| 18 | 18 | (async () => { | 19 | 19 | try { | |
Collapse file Copy file name to clipboardExpand all lines: test/sequential/test-debugger-exec-scope.mjs +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -7,7 +7,7 @@ import startCLI from '../common/debugger.js'; | 7 | 7 |
| 8 | 8 | import assert from 'assert'; | 9 | 9 |
| 10 | | -const cli = startCLI([path('debugger/backtrace.js')]); | | 10 | +const cli = startCLI(['--port=0', path('debugger/backtrace.js')]); | 11 | 11 |
| 12 | 12 | try { | 13 | 13 | await cli.waitForInitialBreak(); | |
Collapse file Copy file name to clipboardExpand all lines: test/sequential/test-debugger-exec.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -8,7 +8,7 @@ const startCLI = require('../common/debugger'); | 8 | 8 |
| 9 | 9 | const assert = require('assert'); | 10 | 10 |
| 11 | | -const cli = startCLI([fixtures.path('debugger/alive.js')]); | | 11 | +const cli = startCLI(['--port=0', fixtures.path('debugger/alive.js')]); | 12 | 12 |
| 13 | 13 | async function waitInitialBreak() { | 14 | 14 | try { | |
Collapse file Copy file name to clipboardExpand all lines: test/sequential/test-debugger-heap-profiler.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -17,7 +17,7 @@ const filename = path.join(tmpdir.path, 'node.heapsnapshot'); | 17 | 17 | // Heap profiler take snapshot. | 18 | 18 | { | 19 | 19 | const opts = { cwd: tmpdir.path }; | 20 | | - const cli = startCLI([fixtures.path('debugger/empty.js')], [], opts); | | 20 | + const cli = startCLI(['--port=0', fixtures.path('debugger/empty.js')], [], opts); | 21 | 21 |
| 22 | 22 | async function waitInitialBreak() { | 23 | 23 | try { | |
Collapse file Copy file name to clipboardExpand all lines: test/sequential/test-debugger-help.mjs +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -7,7 +7,7 @@ import startCLI from '../common/debugger.js'; | 7 | 7 |
| 8 | 8 | import assert from 'assert'; | 9 | 9 |
| 10 | | -const cli = startCLI([path('debugger', 'empty.js')]); | | 10 | +const cli = startCLI(['--port=0', path('debugger', 'empty.js')]); | 11 | 11 |
| 12 | 12 | try { | 13 | 13 | await cli.waitForInitialBreak(); | |
|