1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-27 16:10:57 -05:00

Clean up the test failure output (denoland/deno_std#209)

Original: e609f0c7cb
This commit is contained in:
Andy Hayden 2019-02-23 08:24:57 -08:00 committed by Ryan Dahl
parent ad77215052
commit 7484cf88b5

View file

@ -286,7 +286,8 @@ export async function runTests() {
// Use setTimeout to avoid the error being ignored due to unhandled // Use setTimeout to avoid the error being ignored due to unhandled
// promise rejections being swallowed. // promise rejections being swallowed.
setTimeout(() => { setTimeout(() => {
throw new Error(`There were ${failed} test failures.`); console.error(`There were ${failed} test failures.`);
Deno.exit(1);
}, 0); }, 0);
} }
} }