Skip to content

Commit

Permalink
Avoid calling resolve after reject (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
fpoli committed Feb 2, 2022
1 parent 8e8d7a8 commit 25eafb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/runTest.ts
Expand Up @@ -183,10 +183,10 @@ async function innerRunTests(
reject(signal);
} else if (code !== 0) {
reject('Failed');
} else {
console.log('Done\n');
resolve(code ?? -1);
}

console.log('Done\n');
resolve(code ?? -1);
}

cmd.on('close', onProcessClosed);
Expand Down

0 comments on commit 25eafb9

Please sign in to comment.