mirror of https://github.com/nodejs/node.git
test: replace .then chains with await
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
5b4ba52786
commit
24f045dae2
|
@ -104,13 +104,12 @@ function startCLI(args, flags = [], spawnOpts = {}) {
|
|||
},
|
||||
|
||||
async waitForInitialBreak() {
|
||||
return this.waitFor(/break (?:on start )?in/i)
|
||||
.then(async () => {
|
||||
await this.waitFor(/break (?:on start )?in/i);
|
||||
|
||||
if (isPreBreak(this.output)) {
|
||||
return this.command('next', false)
|
||||
.then(() => this.waitFor(/break in/));
|
||||
await this.command('next', false);
|
||||
return this.waitFor(/break in/);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
get breakInfo() {
|
||||
|
|
Loading…
Reference in New Issue