summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/test/ops_sanitizer_unstable.ts
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2023-04-01 21:20:16 +0100
committerGitHub <noreply@github.com>2023-04-01 16:20:16 -0400
commite5588d2f1eb84947c8691fffbcf719a73557a3f5 (patch)
tree2fde86d5178a7670dbf620e854d3f5f7accc150d /cli/tests/testdata/test/ops_sanitizer_unstable.ts
parent0210c1cadf305170aa1aa7325ff6f50d78c9f5dc (diff)
fix(test): don't swallow sanitizer errors with permissions (#18550)
Missing `return` from #18246.
Diffstat (limited to 'cli/tests/testdata/test/ops_sanitizer_unstable.ts')
-rw-r--r--cli/tests/testdata/test/ops_sanitizer_unstable.ts9
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);
+ },
});