Skip to content

Commit e35a2a5

Browse files
committed
Exit code for failure
1 parent add3738 commit e35a2a5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/http_test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ async function runTests() {
196196

197197
const passedCount = results.filter((result) => result).length;
198198
console.log(`\n${passedCount} out of ${testCases.length} tests passed.`);
199+
if (passedCount != testCases.length) {
200+
Deno.exit(1);
201+
}
199202
}
200203

201204
// Run a single test case with a 3-second timeout on reading

0 commit comments

Comments
 (0)