Skip to content

Commit

Permalink
test: modify then to async/await
Browse files Browse the repository at this point in the history
  • Loading branch information
meekdenzo committed May 28, 2022
1 parent 6d57dbf commit 53fecaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-debugger-address.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function launchTarget(...args) {
const { childProc, host, port } = await launchTarget('--inspect=0', script);
target = childProc;
cli = startCLI([`${host || '127.0.0.1'}:${port}`]);
await cli.waitForPrompt();
await cli.waitForPrompt();
await cli.command('sb("alive.js", 3)');
await cli.waitFor(/break/);
await cli.waitForPrompt();
Expand All @@ -70,5 +70,5 @@ function launchTarget(...args) {
} finally {
cleanup();
}
})();
})().then(common.mustCall());
}

0 comments on commit 53fecaf

Please sign in to comment.