diff --git a/test/parallel/test-debugger-run-after-quit-restart.js b/test/parallel/test-debugger-run-after-quit-restart.js index 397c25cceaff65..d81d3890bcd655 100644 --- a/test/parallel/test-debugger-run-after-quit-restart.js +++ b/test/parallel/test-debugger-run-after-quit-restart.js @@ -42,6 +42,7 @@ const path = require('path'); assert.match(cli.output, /Use `run` to start the app again/); }) .then(() => cli.command('run')) + .then(() => cli.waitFor(/ ok\n/)) .then(() => cli.waitForInitialBreak()) .then(() => cli.waitForPrompt()) .then(() => { @@ -58,9 +59,9 @@ const path = require('path'); ); }) .then(() => cli.command('restart')) - .then(() => cli.waitFor(/Debugger attached\./)) - .then(() => cli.waitForPrompt()) + .then(() => cli.waitFor(/ ok\n/)) .then(() => cli.waitForInitialBreak()) + .then(() => cli.waitForPrompt()) .then(() => { assert.deepStrictEqual( cli.breakInfo, @@ -74,6 +75,7 @@ const path = require('path'); assert.match(cli.output, /Use `run` to start the app again/); }) .then(() => cli.command('run')) + .then(() => cli.waitFor(/ ok\n/)) .then(() => cli.waitForInitialBreak()) .then(() => cli.waitForPrompt()) .then(() => {