mirror of
https://github.com/nodejs/node.git
synced 2025-12-28 07:50:41 +00:00
test: fix "test/common/debugger" identify async function
PR-URL: https://github.com/nodejs/node/pull/40348 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
This commit is contained in:
parent
eaa59571e0
commit
5b4ba52786
@ -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/));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user