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() {
|
async waitForInitialBreak() {
|
||||||
return this.waitFor(/break (?:on start )?in/i)
|
await this.waitFor(/break (?:on start )?in/i);
|
||||||
.then(async () => {
|
|
||||||
if (isPreBreak(this.output)) {
|
if (isPreBreak(this.output)) {
|
||||||
return this.command('next', false)
|
await this.command('next', false);
|
||||||
.then(() => this.waitFor(/break in/));
|
return this.waitFor(/break in/);
|
||||||
}
|
}
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
get breakInfo() {
|
get breakInfo() {
|
||||||
|
|
Loading…
Reference in New Issue