diff --git a/test/run-qunit.js b/test/run-qunit.js index a7cd8ad7671..6c57ecd478b 100644 --- a/test/run-qunit.js +++ b/test/run-qunit.js @@ -127,12 +127,10 @@ async function runAllTests() { }); } -try { - runAllTests(); -} catch (e) { +runAllTests().catch(e => { console.log("Failed to run tests: " + e); process.exit(1); -} +}); // The following functions are converted to strings // And then sent to chrome to be evalaluated