diff --git a/test/common/debugger.js b/test/common/debugger.js index 36d6328dcc9b39..0cb4c54eeecfb1 100644 --- a/test/common/debugger.js +++ b/test/common/debugger.js @@ -103,9 +103,9 @@ function startCLI(args, flags = [], spawnOpts = {}) { return this.waitFor(/>\s+$/); }, - waitForInitialBreak() { + async waitForInitialBreak() { return this.waitFor(/break (?:on start )?in/i) - .then(() => { + .then(async () => { if (isPreBreak(this.output)) { return this.command('next', false) .then(() => this.waitFor(/break in/));