diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-07-13 11:16:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-13 11:16:42 -0400 |
commit | 667812a297a538863695c20bf5d8228301298db5 (patch) | |
tree | d6f884ee4f0102831283f077ffd5d797a9eada5e /cli/tests/integration/run_tests.rs | |
parent | 7470b2d2a765396a283bfd169b5fa9bacf0c01d0 (diff) |
fix(cli): synchronize async stdio/file reads and writes (#15092)
Fixes a regression where async writes and reads could get out of order.
Diffstat (limited to 'cli/tests/integration/run_tests.rs')
-rw-r--r-- | cli/tests/integration/run_tests.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs index e8bf3682a..b450d0d44 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -8,8 +8,14 @@ use test_util::TempDir; use util::assert_contains; itest!(stdout_write_all { - args: "run --quiet stdout_write_all.ts", - output: "stdout_write_all.out", + args: "run --quiet run/stdout_write_all.ts", + output: "run/stdout_write_all.out", +}); + +itest!(stdin_read_all { + args: "run --quiet run/stdin_read_all.ts", + output: "run/stdin_read_all.out", + input: Some("01234567890123456789012345678901234567890123456789"), }); itest!(_001_hello { |