Skip to content

Commit 1069e36

Browse files
committed
fixup! test,debugger: migrate node-inspect tests to core
1 parent 0e6fba5 commit 1069e36

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/common/inspector-cli.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function startCLI(args, flags = [], spawnOpts = {}) {
4848
return output;
4949
},
5050

51-
waitFor(pattern, timeout = 5000) {
51+
waitFor(pattern, timeout = 2000) {
5252
function checkPattern(str) {
5353
if (Array.isArray(pattern)) {
5454
return pattern.every((p) => p.test(str));
@@ -90,11 +90,11 @@ function startCLI(args, flags = [], spawnOpts = {}) {
9090
});
9191
},
9292

93-
waitForPrompt(timeout = 5000) {
93+
waitForPrompt(timeout = 2000) {
9494
return this.waitFor(/>\s+$/, timeout);
9595
},
9696

97-
waitForInitialBreak(timeout = 5000) {
97+
waitForInitialBreak(timeout = 2000) {
9898
return this.waitFor(/break (?:on start )?in/i, timeout)
9999
.then(() => {
100100
if (isPreBreak(this.output)) {

test/inspector-cli/test-inspector-cli-launch-ports.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const assert = require('assert');
5454
{
5555
const script = fixtures.path('inspector-cli', 'three-lines.js');
5656

57-
const cli = startCLI([script], ['--inspect-port=0']);
57+
const cli = startCLI(['--inspect-port=0', script]);
5858

5959
cli.waitForInitialBreak()
6060
.then(() => cli.waitForPrompt())

0 commit comments

Comments
 (0)