Commit 7cd0758d authored by Daniel Shumway's avatar Daniel Shumway

fix: clear timeout on test failure

- fixes the weird 5 second delay when running the suite
parent 266032dc
......@@ -141,8 +141,10 @@ var Suite = (function () {
clearTimeout(timeout);
//For the API to be completely, 100% consistent, allow recursion.
_that.promisify(resolution, suite).then(res, rej);
}, rej)
.catch(rej); //Catch runtime exceptions during recursive `promisify`
}, function (error) {
clearTimeout(timeout);
rej(error);
}).catch(rej); //Catch runtime exceptions during recursive `promisify`
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment