1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

fix: revert changes to test output for uncaught errors (#15231)

This commit is contained in:
Bartek Iwańczuk 2022-07-18 18:58:13 +02:00 committed by GitHub
parent 45c49034a7
commit 89c1ad0303
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 18 deletions

View file

@ -1,9 +1,6 @@
running 3 tests from ./test/uncaught_errors_1.ts
running 2 tests from ./test/uncaught_errors_1.ts
foo 1 ... FAILED ([WILDCARD])
foo 2 ... ok ([WILDCARD])
foo 3 ...
Uncaught error from ./test/uncaught_errors_1.ts FAILED
foo 3 ... cancelled (0ms)
running 3 tests from ./test/uncaught_errors_2.ts
bar 1 ... ok ([WILDCARD])
bar 2 ... FAILED ([WILDCARD])
@ -18,14 +15,6 @@ error: Error: foo 1 message
^
at [WILDCARD]/test/uncaught_errors_1.ts:2:9
./test/uncaught_errors_1.ts (uncaught error)
error: (in promise) Error: foo 3 message
Promise.reject(new Error("foo 3 message"));
^
at [WILDCARD]/test/uncaught_errors_1.ts:8:18
This error was not caught from a test and caused the test runner to fail on the referenced module.
It most likely originated from a dangling promise, event/timeout handler or top-level code.
bar 2 => ./test/uncaught_errors_2.ts:3:6
error: Error: bar 2
throw new Error("bar 2");
@ -49,11 +38,10 @@ It most likely originated from a dangling promise, event/timeout handler or top-
FAILURES
foo 1 => ./test/uncaught_errors_1.ts:1:6
./test/uncaught_errors_1.ts (uncaught error)
bar 2 => ./test/uncaught_errors_2.ts:3:6
bar 3 => ./test/uncaught_errors_2.ts:6:6
./test/uncaught_errors_3.ts (uncaught error)
FAILED | 2 passed | 6 failed ([WILDCARD])
FAILED | 2 passed | 4 failed ([WILDCARD])
error: Test failed

View file

@ -3,7 +3,3 @@ Deno.test("foo 1", () => {
});
Deno.test("foo 2", () => {});
Deno.test("foo 3", () => {
Promise.reject(new Error("foo 3 message"));
});