summaryrefslogtreecommitdiff
path: root/cli/tests/testdata
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-04-03 19:01:02 +0200
committerGitHub <noreply@github.com>2023-04-03 19:01:02 +0200
commit51d3fb78ad2453e649d01bcc833ecfec1a05d685 (patch)
treea093cd2ad4faf1cb1fc069de8c406aeef69e1b5a /cli/tests/testdata
parent2846bbe0a3de0cc366006f97023ce146112c40c9 (diff)
refactor: remove "ext/flash" (#18578)
With https://github.com/denoland/deno/pull/18568 landed we no longer need "ext/flash". This commit removes "deno_flash" extension completely. This should have some impact on the binary and snapshot size. Closes https://github.com/denoland/deno/issues/17356
Diffstat (limited to 'cli/tests/testdata')
-rw-r--r--cli/tests/testdata/run/flash_shutdown/main.ts23
1 files changed, 0 insertions, 23 deletions
diff --git a/cli/tests/testdata/run/flash_shutdown/main.ts b/cli/tests/testdata/run/flash_shutdown/main.ts
deleted file mode 100644
index 5e0908efb..000000000
--- a/cli/tests/testdata/run/flash_shutdown/main.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
-
-// Deno.serve caused segfault with this example after #16383
-// refs:
-// - https://github.com/denoland/deno/pull/16383
-// - https://github.com/denoland/deno_std/issues/2882
-// - revert https://github.com/denoland/deno/pull/16610
-
-const ctl = new AbortController();
-Deno.serve(() =>
- new Promise((resolve) => {
- resolve(new Response(new TextEncoder().encode("ok")));
- ctl.abort();
- }), {
- signal: ctl.signal,
- async onListen({ port }) {
- const a = await fetch(`http://localhost:${port}`, {
- method: "POST",
- body: "",
- });
- await a.text();
- },
-});