diff options
Diffstat (limited to 'cli/tests/testdata')
-rw-r--r-- | cli/tests/testdata/test/ops_sanitizer_unstable.out | 35 | ||||
-rw-r--r-- | cli/tests/testdata/test/ops_sanitizer_unstable.ts | 4 |
2 files changed, 39 insertions, 0 deletions
diff --git a/cli/tests/testdata/test/ops_sanitizer_unstable.out b/cli/tests/testdata/test/ops_sanitizer_unstable.out new file mode 100644 index 000000000..3faea472b --- /dev/null +++ b/cli/tests/testdata/test/ops_sanitizer_unstable.out @@ -0,0 +1,35 @@ +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 +AssertionError: Test case is leaking async ops. +Before: + - dispatched: 1 + - completed: 1 +After: + - dispatched: 3 + - completed: 2 +Ops: + op_global_timer: + Before: + - dispatched: 1 + - completed: 1 + After: + - dispatched: 3 + - completed: 2 + +Make sure to await all promises returned from Deno APIs before +finishing test case. + at [WILDCARD] + +failures: + + leak interval + +test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD]) + +error: Test failed diff --git a/cli/tests/testdata/test/ops_sanitizer_unstable.ts b/cli/tests/testdata/test/ops_sanitizer_unstable.ts new file mode 100644 index 000000000..92f7bb888 --- /dev/null +++ b/cli/tests/testdata/test/ops_sanitizer_unstable.ts @@ -0,0 +1,4 @@ +Deno.test("no-op", function () {}); +Deno.test("leak interval", function () { + setInterval(function () {}); +}); |