summaryrefslogtreecommitdiff
path: root/cli/tests/integration/task_tests.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-03-28 17:49:00 -0400
committerGitHub <noreply@github.com>2023-03-28 21:49:00 +0000
commit6fb6b0c1f302e8637c96131c9ffc4c4b9f3f5f0f (patch)
treedff55c1b345f317ebd3ec5a3b62c26ed27d5830c /cli/tests/integration/task_tests.rs
parentc65149c0a072fa710098b14776c6cd3cc8a204d6 (diff)
chore: restore pty tests and make them run on the Linux CI (#18424)
1. Rewrites the tests to be more back and forth rather than getting the output all at once (which I believe was causing the hangs on linux and maybe mac) 2. Runs the pty tests on the linux ci. 3. Fixes a bunch of tests that were just wrong. 4. Adds timeouts on the pty tests.
Diffstat (limited to 'cli/tests/integration/task_tests.rs')
-rw-r--r--cli/tests/integration/task_tests.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/cli/tests/integration/task_tests.rs b/cli/tests/integration/task_tests.rs
index 3dce90a0c..f090deff5 100644
--- a/cli/tests/integration/task_tests.rs
+++ b/cli/tests/integration/task_tests.rs
@@ -53,9 +53,12 @@ itest!(task_non_existent {
#[test]
fn task_emoji() {
// this bug only appears when using a pty/tty
- let args = "task --config task/deno_json/deno.json echo_emoji";
- use test_util::PtyData::*;
- test_util::test_pty2(args, vec![Output("Task echo_emoji echo šŸ”„\r\nšŸ”„")]);
+ test_util::with_pty(
+ &["task", "--config", "task/deno_json/deno.json", "echo_emoji"],
+ |mut console| {
+ console.expect("Task echo_emoji echo šŸ”„\r\nšŸ”„");
+ },
+ );
}
itest!(task_boolean_logic {