summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-10-10 05:41:11 -0400
committerGitHub <noreply@github.com>2020-10-10 11:41:11 +0200
commit08bb8b3d53eb2445de9b5e2845ab8acf9d353800 (patch)
treeebf00cb815ee1a10be00c74cbb332af33dd52dc2 /cli/tests
parent782e6a2ed5d76bb5a154c56d7daf4607e5bdb93f (diff)
Fix 100% CPU idling problem by reverting #7672 (#7911)
* Revert "refactor: Worker is not a Future (#7895)" This reverts commit f4357f0ff9d39411f22504fcc20db6bd5dec6ddb. * Revert "refactor(core): JsRuntime is not a Future (#7855)" This reverts commit d8879feb8c832dbb38649551b1cb0730874f7be6. * Revert "fix(core): module execution with top level await (#7672)" This reverts commit c7c767782538243ded64742dca9b34d6af74d62d.
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration_tests.rs10
-rw-r--r--cli/tests/top_level_await_bug.js2
-rw-r--r--cli/tests/top_level_await_bug.out1
-rw-r--r--cli/tests/top_level_await_bug2.js15
-rw-r--r--cli/tests/top_level_await_bug2.out4
-rw-r--r--cli/tests/top_level_await_bug_nested.js5
6 files changed, 0 insertions, 37 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index 9ad7bac8c..8e2007b42 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -2662,16 +2662,6 @@ itest!(ignore_require {
exit_code: 0,
});
-itest!(top_level_await_bug {
- args: "run --allow-read top_level_await_bug.js",
- output: "top_level_await_bug.out",
-});
-
-itest!(top_level_await_bug2 {
- args: "run --allow-read top_level_await_bug2.js",
- output: "top_level_await_bug2.out",
-});
-
#[test]
fn cafile_env_fetch() {
use deno_core::url::Url;
diff --git a/cli/tests/top_level_await_bug.js b/cli/tests/top_level_await_bug.js
deleted file mode 100644
index 3c6860a5b..000000000
--- a/cli/tests/top_level_await_bug.js
+++ /dev/null
@@ -1,2 +0,0 @@
-const mod = await import("./top_level_await_bug_nested.js");
-console.log(mod);
diff --git a/cli/tests/top_level_await_bug.out b/cli/tests/top_level_await_bug.out
deleted file mode 100644
index f0369645c..000000000
--- a/cli/tests/top_level_await_bug.out
+++ /dev/null
@@ -1 +0,0 @@
-Module { default: 1, [Symbol(Symbol.toStringTag)]: "Module" }
diff --git a/cli/tests/top_level_await_bug2.js b/cli/tests/top_level_await_bug2.js
deleted file mode 100644
index c847bbd34..000000000
--- a/cli/tests/top_level_await_bug2.js
+++ /dev/null
@@ -1,15 +0,0 @@
-const mod = await import("./top_level_await_bug_nested.js");
-console.log(mod);
-
-const sleep = (n) => new Promise((r) => setTimeout(r, n));
-
-await sleep(100);
-console.log("slept");
-
-window.addEventListener("load", () => {
- console.log("load event");
-});
-
-setTimeout(() => {
- console.log("timeout");
-}, 1000);
diff --git a/cli/tests/top_level_await_bug2.out b/cli/tests/top_level_await_bug2.out
deleted file mode 100644
index 509ee27c2..000000000
--- a/cli/tests/top_level_await_bug2.out
+++ /dev/null
@@ -1,4 +0,0 @@
-Module { default: 1, [Symbol(Symbol.toStringTag)]: "Module" }
-slept
-load event
-timeout
diff --git a/cli/tests/top_level_await_bug_nested.js b/cli/tests/top_level_await_bug_nested.js
deleted file mode 100644
index 894f0de2d..000000000
--- a/cli/tests/top_level_await_bug_nested.js
+++ /dev/null
@@ -1,5 +0,0 @@
-const sleep = (n) => new Promise((r) => setTimeout(r, n));
-
-await sleep(100);
-
-export default 1;