Skip to content

Commit 07dae7f

Browse files
gdccwxxtargos
authored andcommitted
test: replace .then chains with await
PR-URL: #40348 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
1 parent d8a36ee commit 07dae7f

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

‎test/common/debugger.js‎

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

106106
asyncwaitForInitialBreak(){
107-
returnthis.waitFor(/break(?:onstart)?in/i)
108-
.then(async()=>{
109-
if(isPreBreak(this.output)){
110-
returnthis.command('next',false)
111-
.then(()=>this.waitFor(/breakin/));
112-
}
113-
});
107+
awaitthis.waitFor(/break(?:onstart)?in/i);
108+
109+
if(isPreBreak(this.output)){
110+
awaitthis.command('next',false);
111+
returnthis.waitFor(/breakin/);
112+
}
114113
},
115114

116115
getbreakInfo(){

0 commit comments

Comments
 (0)