Skip to content

Commit 53fecaf

Browse files
committed
test: modify then to async/await
1 parent 6d57dbf commit 53fecaf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/parallel/test-debugger-address.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function launchTarget(...args) {
5858
const { childProc, host, port } = await launchTarget('--inspect=0', script);
5959
target = childProc;
6060
cli = startCLI([`${host || '127.0.0.1'}:${port}`]);
61-
await cli.waitForPrompt();
61+
await cli.waitForPrompt();
6262
await cli.command('sb("alive.js", 3)');
6363
await cli.waitFor(/break/);
6464
await cli.waitForPrompt();
@@ -70,5 +70,5 @@ function launchTarget(...args) {
7070
} finally {
7171
cleanup();
7272
}
73-
})();
73+
})().then(common.mustCall());
7474
}

0 commit comments

Comments
 (0)