Skip to content

Commit

Permalink
remove extra await (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
pepoviola authored Jun 2, 2022
1 parent 5b7476d commit 7dd3ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test-runner/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ function parseAssertionLine(assertion: string) {
let values;
try {
const resp: any = await Promise.race([
await Promise.all(nodes.map(node => jsScript.run(node.name, networkInfo, args))),
Promise.all(nodes.map(node => jsScript.run(node.name, networkInfo, args))),
new Promise((resolve) => setTimeout(() => {
const err = new Error(`Timeout(${timeout}), "custom-js ${jsFile} within ${timeout} secs" didn't complete on time.`);
return resolve(err);
Expand Down

0 comments on commit 7dd3ff6

Please sign in to comment.