Skip to content

Commit 07dae7f

Browse files
gdccwxxtargos
authored andcommitted
test: replace .then chains with await
PR-URL: #40348 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent d8a36ee commit 07dae7f

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

test/common/debugger.js

+6-7
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,12 @@ function startCLI(args, flags = [], spawnOpts = {}) {
104104
},
105105

106106
async waitForInitialBreak() {
107-
return this.waitFor(/break (?:on start )?in/i)
108-
.then(async () => {
109-
if (isPreBreak(this.output)) {
110-
return this.command('next', false)
111-
.then(() => this.waitFor(/break in/));
112-
}
113-
});
107+
await this.waitFor(/break (?:on start )?in/i);
108+
109+
if (isPreBreak(this.output)) {
110+
await this.command('next', false);
111+
return this.waitFor(/break in/);
112+
}
114113
},
115114

116115
get breakInfo() {

0 commit comments

Comments
 (0)