diff options
Diffstat (limited to 'tests/testdata/run/stdout_write_all.ts')
-rw-r--r-- | tests/testdata/run/stdout_write_all.ts | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/testdata/run/stdout_write_all.ts b/tests/testdata/run/stdout_write_all.ts deleted file mode 100644 index cfb2981e4..000000000 --- a/tests/testdata/run/stdout_write_all.ts +++ /dev/null @@ -1,13 +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 < 100; i++) { - pending.push(Deno.stdout.write(encoder.encode("Hello, "))); - pending.push(Deno.stdout.write(encoder.encode(`world! ${i}`))); - pending.push(Deno.stdout.write(encoder.encode("\n"))); -} - -await Promise.all(pending); |