1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-15 03:48:02 -05:00
denoland-deno/cli/tests/testdata/test/ops_sanitizer_multiple_timeout_tests.ts
Luca Casonato 53088e16de
feat(test): improved op sanitizer errors + traces (#13676)
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.
2022-02-16 19:53:17 +01:00

10 lines
203 B
TypeScript

// https://github.com/denoland/deno/issues/8965
function test() {
setTimeout(() => {}, 10000);
setTimeout(() => {}, 10001);
}
Deno.test("test 1", () => test());
Deno.test("test 2", () => test());