summaryrefslogtreecommitdiff
path: root/tests/testdata/run/stdin_read_all.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testdata/run/stdin_read_all.ts')
-rw-r--r--tests/testdata/run/stdin_read_all.ts17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/testdata/run/stdin_read_all.ts b/tests/testdata/run/stdin_read_all.ts
deleted file mode 100644
index d683a2bf6..000000000
--- a/tests/testdata/run/stdin_read_all.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-const encoder = new TextEncoder();
-
-const pending = [];
-
-// do this a bunch of times to ensure it doesn't race
-// and everything happens in order
-for (let i = 0; i < 50; i++) {
- const buf = new Uint8Array(1);
- pending.push(
- Deno.stdin.read(buf).then(() => {
- return Deno.stdout.write(buf);
- }),
- );
-}
-
-await Promise.all(pending);
-await Deno.stdout.write(encoder.encode("\n"));