make async node tests actually fail when they fail. Update tests that were failing

This commit is contained in:
d98762625 2019-10-07 17:41:51 +01:00
parent 06708949a1
commit 210daf7324
5 changed files with 105 additions and 82 deletions

View file

@ -15,9 +15,9 @@
/**
* Print useful stack on error
*/
const wrapRun = (run) => () => {
const wrapRun = (run) => async () => {
try {
run();
await run();
} catch (e) {
console.dir(e);
throw e;