summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration/run_tests.rs7
-rw-r--r--cli/tests/testdata/run/flash_shutdown/main.ts23
2 files changed, 0 insertions, 30 deletions
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs
index b661e135a..1d70a9cb7 100644
--- a/cli/tests/integration/run_tests.rs
+++ b/cli/tests/integration/run_tests.rs
@@ -4230,13 +4230,6 @@ itest!(config_file_lock_true {
exit_code: 10,
});
-// TODO(bartlomieju): this test is flaky on CI, reenable it after debugging
-// // Check https://github.com/denoland/deno_std/issues/2882
-// itest!(flash_shutdown {
-// args: "run --unstable --allow-net run/flash_shutdown/main.ts",
-// exit_code: 0,
-// });
-
itest!(permission_args {
args: "run run/001_hello.js --allow-net",
output: "run/permission_args.out",
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();
- },
-});