Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 07dae7f

Browse filesBrowse 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
Copy full SHA for 07dae7f

File tree

Expand file treeCollapse file tree

1 file changed

+6
-7
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-7
lines changed
Open diff view settings
Collapse file

‎test/common/debugger.js‎

Copy file name to clipboardExpand all lines: test/common/debugger.js
+6-7Lines 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
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.