aboutsummaryrefslogtreecommitdiff
path: root/testlib/node/runtime.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-08 16:52:03 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-08 16:52:03 +0100
commit5dfa8d79e1ec28093056e5f52529ee3103361534 (patch)
tree9166aa62eeb54ed87f9d754b6ad750ce05f2b6a1 /testlib/node/runtime.js
parentafb9fba64be1f15a3ce3ed31214a704e73e5e8bb (diff)
fixes to test harness
Diffstat (limited to 'testlib/node/runtime.js')
-rw-r--r--testlib/node/runtime.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/testlib/node/runtime.js b/testlib/node/runtime.js
index 29ee508cc..dfdada9e8 100644
--- a/testlib/node/runtime.js
+++ b/testlib/node/runtime.js
@@ -53,6 +53,11 @@ let mod = System.newModule({Module: emsc, default: emsc});
let modName = System.normalizeSync(__dirname + "/../../lib/emscripten/taler-emscripten-lib.js");
System.set(modName, mod);
+process.on('unhandledRejection', function(reason, p){
+ console.log("Possibly Unhandled Rejection at: Promise ", p, " reason: ", reason);
+ process.exit(1);
+});
+
let testName = process.argv[2];
System.import("testlib/talertest")