summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/test/ops_sanitizer_multiple_timeout_tests.ts
diff options
context:
space:
mode:
authorAndreu Botella <abb@randomunok.com>2021-12-07 13:39:58 +0100
committerGitHub <noreply@github.com>2021-12-07 13:39:58 +0100
commit33da15ae5aa1b454d1a73eb5fbc3135927122988 (patch)
tree92bd8c024b4cabc32337a6169808e64d1f814819 /cli/tests/testdata/test/ops_sanitizer_multiple_timeout_tests.ts
parent5027826a6407c96a973155be0620b458ab74d974 (diff)
refactor(timers): refactor timers to use one async op per timer (#12862)
This change also makes the timers implementation closer to the spec, and sets up the stage to implement AbortSignal.timeout() (whatwg/dom#1032). Fixes #8965 Fixes #10974 Fixes #11398
Diffstat (limited to 'cli/tests/testdata/test/ops_sanitizer_multiple_timeout_tests.ts')
-rw-r--r--cli/tests/testdata/test/ops_sanitizer_multiple_timeout_tests.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/tests/testdata/test/ops_sanitizer_multiple_timeout_tests.ts b/cli/tests/testdata/test/ops_sanitizer_multiple_timeout_tests.ts
new file mode 100644
index 000000000..f30773cf2
--- /dev/null
+++ b/cli/tests/testdata/test/ops_sanitizer_multiple_timeout_tests.ts
@@ -0,0 +1,10 @@
+// https://github.com/denoland/deno/issues/8965
+
+function test() {
+ setTimeout(() => {}, 10000);
+ setTimeout(() => {}, 10001);
+}
+
+Deno.test("test 1", test);
+
+Deno.test("test 2", test);