mirror of
https://github.com/denoland/deno.git
synced 2024-11-29 16:30:56 -05:00
53088e16de
This commit improves the error messages for the `deno test` async op sanitizer. It does this in two ways: - it uses handwritten error messages for each op that could be leaking - it includes traces showing where each op was started This "async op tracing" functionality is a new feature in deno_core. It likely has a significant performance impact, which is why it is only enabled in tests.
23 lines
732 B
Text
23 lines
732 B
Text
Check [WILDCARD]/testdata/test/ops_sanitizer_unstable.ts
|
|
running 2 tests from [WILDCARD]/testdata/test/ops_sanitizer_unstable.ts
|
|
test no-op ... ok ([WILDCARD])
|
|
test leak interval ... FAILED ([WILDCARD])
|
|
|
|
failures:
|
|
|
|
leak interval
|
|
Test case is leaking async ops.
|
|
|
|
- 1 async operation to sleep for a duration was started in this test, but never completed. This is often caused by not cancelling a `setTimeout` or `setInterval` call. The operation was started here:
|
|
at [WILDCARD]
|
|
at setInterval ([WILDCARD])
|
|
at [WILDCARD]/testdata/test/ops_sanitizer_unstable.ts:3:3
|
|
at [WILDCARD]
|
|
|
|
failures:
|
|
|
|
leak interval
|
|
|
|
test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])
|
|
|
|
error: Test failed
|