GeezerVison is showing github.com — test: wait for ok before initial break after restart · nodejs/node@362644a
File tree
Expand 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/parallel/test-debugger-run-after-quit-restart.js +4-2Lines changed: 4 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -42,6 +42,7 @@ const path = require('path'); |
42 | 42 | assert.match(cli.output, /Use `run` to start the app again/); |
43 | 43 | }) |
44 | 44 | .then(() => cli.command('run')) |
| 45 | + .then(() => cli.waitFor(/ ok\n/)) |
45 | 46 | .then(() => cli.waitForInitialBreak()) |
46 | 47 | .then(() => cli.waitForPrompt()) |
47 | 48 | .then(() => { |
@@ -58,9 +59,9 @@ const path = require('path'); |
58 | 59 | ); |
59 | 60 | }) |
60 | 61 | .then(() => cli.command('restart')) |
61 | | - .then(() => cli.waitFor(/Debugger attached\./)) |
62 | | - .then(() => cli.waitForPrompt()) |
| 62 | + .then(() => cli.waitFor(/ ok\n/)) |
63 | 63 | .then(() => cli.waitForInitialBreak()) |
| 64 | + .then(() => cli.waitForPrompt()) |
64 | 65 | .then(() => { |
65 | 66 | assert.deepStrictEqual( |
66 | 67 | cli.breakInfo, |
@@ -74,6 +75,7 @@ const path = require('path'); |
74 | 75 | assert.match(cli.output, /Use `run` to start the app again/); |
75 | 76 | }) |
76 | 77 | .then(() => cli.command('run')) |
| 78 | + .then(() => cli.waitFor(/ ok\n/)) |
77 | 79 | .then(() => cli.waitForInitialBreak()) |
78 | 80 | .then(() => cli.waitForPrompt()) |
79 | 81 | .then(() => { |
|