mirror of
https://github.com/denoland/deno.git
synced 2024-10-31 09:14:20 -04:00
e3eae662f3
This commit adds "Deno.core.setFormatExceptionCallback" which can be used to provide custom formatting for errors. It is useful in cases when user throws something that is non-Error (eg. a string, plain object, etc).
51 lines
2 KiB
Text
51 lines
2 KiB
Text
Check [WILDCARD]/testdata/test/ops_sanitizer_multiple_timeout_tests.ts
|
|
running 2 tests from ./test/ops_sanitizer_multiple_timeout_tests.ts
|
|
test 1 ... FAILED ([WILDCARD])
|
|
test 2 ... FAILED ([WILDCARD])
|
|
|
|
ERRORS
|
|
|
|
test 1 => ./test/ops_sanitizer_multiple_timeout_tests.ts:[WILDCARD]
|
|
error: AssertionError: Test case is leaking async ops.
|
|
|
|
- 2 async operations to sleep for a duration were started in this test, but never completed. This is often caused by not cancelling a `setTimeout` or `setInterval` call. The operations were started here:
|
|
at [WILDCARD]
|
|
at setTimeout ([WILDCARD])
|
|
at test ([WILDCARD]/testdata/test/ops_sanitizer_multiple_timeout_tests.ts:4:3)
|
|
at [WILDCARD]/testdata/test/ops_sanitizer_multiple_timeout_tests.ts:8:27
|
|
at [WILDCARD]
|
|
|
|
at [WILDCARD]
|
|
at setTimeout ([WILDCARD])
|
|
at test ([WILDCARD]/testdata/test/ops_sanitizer_multiple_timeout_tests.ts:5:3)
|
|
at [WILDCARD]/testdata/test/ops_sanitizer_multiple_timeout_tests.ts:8:27
|
|
at [WILDCARD]
|
|
|
|
at [WILDCARD]
|
|
|
|
test 2 => ./test/ops_sanitizer_multiple_timeout_tests.ts:[WILDCARD]
|
|
error: AssertionError: Test case is leaking async ops.
|
|
|
|
- 2 async operations to sleep for a duration were started in this test, but never completed. This is often caused by not cancelling a `setTimeout` or `setInterval` call. The operations were started here:
|
|
at [WILDCARD]
|
|
at setTimeout ([WILDCARD])
|
|
at test ([WILDCARD]/testdata/test/ops_sanitizer_multiple_timeout_tests.ts:4:3)
|
|
at [WILDCARD]/testdata/test/ops_sanitizer_multiple_timeout_tests.ts:10:27
|
|
at [WILDCARD]
|
|
|
|
at [WILDCARD]
|
|
at setTimeout ([WILDCARD])
|
|
at test ([WILDCARD]/testdata/test/ops_sanitizer_multiple_timeout_tests.ts:5:3)
|
|
at [WILDCARD]/testdata/test/ops_sanitizer_multiple_timeout_tests.ts:10:27
|
|
at [WILDCARD]
|
|
|
|
at [WILDCARD]
|
|
|
|
FAILURES
|
|
|
|
test 1 => ./test/ops_sanitizer_multiple_timeout_tests.ts:[WILDCARD]
|
|
test 2 => ./test/ops_sanitizer_multiple_timeout_tests.ts:[WILDCARD]
|
|
|
|
test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])
|
|
|
|
error: Test failed
|