diff options
Diffstat (limited to 'cli/tests/test/finally_timeout.ts')
-rw-r--r-- | cli/tests/test/finally_timeout.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cli/tests/test/finally_timeout.ts b/cli/tests/test/finally_timeout.ts new file mode 100644 index 000000000..dcc0a4d64 --- /dev/null +++ b/cli/tests/test/finally_timeout.ts @@ -0,0 +1,11 @@ +Deno.test("error", function () { + const timer = setTimeout(() => null, 10000); + try { + throw new Error("fail"); + } finally { + clearTimeout(timer); + } +}); + +Deno.test("success", function () { +}); |