summaryrefslogtreecommitdiff
path: root/cli/tests/testdata
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2021-11-29 12:07:47 +0100
committerGitHub <noreply@github.com>2021-11-29 12:07:47 +0100
commit5178e093ed366b59964bc435b0d1bd127a83df8c (patch)
treec3674264d85219a87cdf463501b26004fa4cc6f3 /cli/tests/testdata
parent6c09e023049631ea8b168aec53db4f652a1ec0aa (diff)
Revert "fix(test): Improve reliability of `deno test`'s op sanitizer with timers (#12908)" (#12929)
This reverts commit d335343a79afbcfe719109af510fe7a1dd0df2e8.
Diffstat (limited to 'cli/tests/testdata')
-rw-r--r--cli/tests/testdata/test/ops_sanitizer_timeout_failure.out6
-rw-r--r--cli/tests/testdata/test/ops_sanitizer_timeout_failure.ts22
2 files changed, 0 insertions, 28 deletions
diff --git a/cli/tests/testdata/test/ops_sanitizer_timeout_failure.out b/cli/tests/testdata/test/ops_sanitizer_timeout_failure.out
deleted file mode 100644
index 81a1af63b..000000000
--- a/cli/tests/testdata/test/ops_sanitizer_timeout_failure.out
+++ /dev/null
@@ -1,6 +0,0 @@
-Check [WILDCARD]/testdata/test/ops_sanitizer_timeout_failure.ts
-running 1 test from [WILDCARD]/testdata/test/ops_sanitizer_timeout_failure.ts
-test wait ... ok ([WILDCARD])
-
-test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])
-
diff --git a/cli/tests/testdata/test/ops_sanitizer_timeout_failure.ts b/cli/tests/testdata/test/ops_sanitizer_timeout_failure.ts
deleted file mode 100644
index d40a5a258..000000000
--- a/cli/tests/testdata/test/ops_sanitizer_timeout_failure.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-let intervalHandle: number;
-let firstIntervalPromise: Promise<void>;
-
-addEventListener("load", () => {
- firstIntervalPromise = new Promise((resolve) => {
- let firstIntervalCalled = false;
- intervalHandle = setInterval(() => {
- if (!firstIntervalCalled) {
- resolve();
- firstIntervalCalled = true;
- }
- }, 5);
- });
-});
-
-addEventListener("unload", () => {
- clearInterval(intervalHandle);
-});
-
-Deno.test("wait", async function () {
- await firstIntervalPromise;
-});