Skip to content

Commit

Permalink
fix: actually wait for logs to finish
Browse files Browse the repository at this point in the history
logsFinished is Array<Promise>, so calling await on it has no effect.
Use Promise.all() to wait for all Promise values in the Array.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
  • Loading branch information
kevinoid committed Jan 10, 2022
1 parent 03b5f6b commit 5917e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ export default async function noderegressionMain(args, options) {
}
}

await logsFinished;
await Promise.all(logsFinished);
}

return exitCode;
Expand Down

0 comments on commit 5917e86

Please sign in to comment.