From ae8824527c73a4e350bf2ab1a06f4b8999e5330e Mon Sep 17 00:00:00 2001 From: argv-minus-one Date: Thu, 18 Jul 2019 21:30:47 -0700 Subject: [PATCH] Catch pipeline errors during tests. Previously, if the appdmg pipeline errored out during one of the tests, the error was swallowed and the test simply timed out after 60 seconds. Now, the test fails with the actual error. --- test/api.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/api.js b/test/api.js index eff851c..ad4bd83 100644 --- a/test/api.js +++ b/test/api.js @@ -21,6 +21,8 @@ function runAppdmg (opts, verify, cb) { progressCalled++ }) + ee.on('error', cb) + ee.on('finish', function () { try { assert.strictEqual(progressCalled, STEPS * 2)