From 7cfd83f66afe22a1fbdc407c1267c35df11ad3a6 Mon Sep 17 00:00:00 2001 From: bellman Date: Thu, 4 Jun 2026 13:43:02 +0900 Subject: [PATCH] test: align compact CI contract Generated with https://github.com/Yeachan-Heo/gajae-code Co-authored-by: Gajae Code --- rust/crates/rusty-claude-cli/tests/compact_output.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rust/crates/rusty-claude-cli/tests/compact_output.rs b/rust/crates/rusty-claude-cli/tests/compact_output.rs index 964d65db..6f3cb538 100644 --- a/rust/crates/rusty-claude-cli/tests/compact_output.rs +++ b/rust/crates/rusty-claude-cli/tests/compact_output.rs @@ -360,8 +360,8 @@ fn prompt_subcommand_stdin_flag_appends_pipe_context_423() { } #[test] -fn compact_subcommand_json_help_fails_fast_when_stdin_closed() { - let workspace = unique_temp_dir("compact-nontty-json-help"); +fn compact_subcommand_json_fails_fast_when_stdin_closed() { + let workspace = unique_temp_dir("compact-nontty-json"); let config_home = workspace.join("config-home"); let home = workspace.join("home"); fs::create_dir_all(&workspace).expect("workspace should exist"); @@ -372,19 +372,19 @@ fn compact_subcommand_json_help_fails_fast_when_stdin_closed() { &workspace, &config_home, &home, - &["compact", "--output-format", "json", "--help"], + &["compact", "--output-format", "json"], Duration::from_secs(2), ); assert!( !output.status.success(), - "compact json help should fail non-zero" + "compact json should fail non-zero" ); // #819/#820/#823: JSON abort envelopes route to stdout let stderr = String::from_utf8(output.stderr).expect("stderr should be utf8"); assert!( stderr.trim().is_empty() || !stderr.trim_start().starts_with('{'), - "compact json help should not emit JSON envelope to stderr (#819/#820/#823): {stderr}" + "compact json should not emit JSON envelope to stderr (#819/#820/#823): {stderr}" ); let stdout = String::from_utf8(output.stdout).expect("stdout should be utf8"); let parsed: Value =