diff --git a/test/parallel/test-debugger-run-after-quit-restart.js b/test/parallel/test-debugger-run-after-quit-restart.js index e5f6f86e53750c..39d80322dfaafb 100644 --- a/test/parallel/test-debugger-run-after-quit-restart.js +++ b/test/parallel/test-debugger-run-after-quit-restart.js @@ -42,6 +42,8 @@ const path = require('path'); assert.match(cli.output, /Use `run` to start the app again/); }) .then(() => cli.command('run')) + .then(() => cli.waitFor(/Debugger attached\./)) + .then(() => cli.waitForPrompt()) .then(() => cli.waitForInitialBreak()) .then(() => cli.waitForPrompt()) .then(() => { @@ -72,6 +74,8 @@ const path = require('path'); assert.match(cli.output, /Use `run` to start the app again/); }) .then(() => cli.command('run')) + .then(() => cli.waitFor(/Debugger attached\./)) + .then(() => cli.waitForPrompt()) .then(() => cli.waitForInitialBreak()) .then(() => cli.waitForPrompt()) .then(() => {