summaryrefslogtreecommitdiff
path: root/cli/tests/workers_test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-12-20 15:14:19 +0100
committerGitHub <noreply@github.com>2020-12-20 15:14:19 +0100
commit3eec73ff904e54b6e90879d93b09be4330c63712 (patch)
treed1cd44eb9dc1eb9556a6d6ce82da95620b0359fb /cli/tests/workers_test.ts
parente924bbdf3606e83ff9eef3a8ed640c4ecc34444f (diff)
Revert "fix: TLA in web worker (#8809)" (#8839)
This reverts commit e924bbdf3606e83ff9eef3a8ed640c4ecc34444f.
Diffstat (limited to 'cli/tests/workers_test.ts')
-rw-r--r--cli/tests/workers_test.ts19
1 files changed, 0 insertions, 19 deletions
diff --git a/cli/tests/workers_test.ts b/cli/tests/workers_test.ts
index 4f7682be2..d907c97a9 100644
--- a/cli/tests/workers_test.ts
+++ b/cli/tests/workers_test.ts
@@ -357,22 +357,3 @@ Deno.test({
w.terminate();
},
});
-
-Deno.test({
- name: "Worker with top-level-await",
- fn: async function (): Promise<void> {
- const promise = deferred();
- const worker = new Worker(
- new URL("./worker_with_top_level_await.ts", import.meta.url).href,
- { deno: true, type: "module" },
- );
- worker.onmessage = (e): void => {
- console.log("received from worker", e.data);
- worker.postMessage("from main");
- promise.resolve();
- };
-
- await promise;
- worker.terminate();
- },
-});