diff options
Diffstat (limited to 'cli/tests/testdata/test/ops_sanitizer_unstable.ts')
-rw-r--r-- | cli/tests/testdata/test/ops_sanitizer_unstable.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cli/tests/testdata/test/ops_sanitizer_unstable.ts b/cli/tests/testdata/test/ops_sanitizer_unstable.ts index 4f409e73c..d1b554adf 100644 --- a/cli/tests/testdata/test/ops_sanitizer_unstable.ts +++ b/cli/tests/testdata/test/ops_sanitizer_unstable.ts @@ -1,4 +1,9 @@ Deno.test("no-op", function () {}); -Deno.test("leak interval", function () { - setInterval(function () {}, 100000); +Deno.test({ + name: "leak interval", + // regression test for sanitizer errors being swallowed with permissions. + permissions: {}, + fn() { + setInterval(function () {}, 100000); + }, }); |