Clean up the test failure output (#209)

This commit is contained in:
Andy Hayden 2019-02-23 08:24:57 -08:00 committed by Ryan Dahl
parent 817a0fb439
commit e609f0c7cb

View File

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