From 09b1a161259f49d439bf805a2926966dc8250506 Mon Sep 17 00:00:00 2001 From: "Andrew Phillips (aider)" Date: Mon, 12 May 2025 12:08:30 -0300 Subject: [PATCH] fix: replace .expect() with output status check --- src/tests.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tests.rs b/src/tests.rs index 342d856..c56daef 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -253,7 +253,8 @@ mod tests { let input = "test content"; // Create a command that pipes input to keep with the specified environment and compression let cmd = format!("echo {} | {}", input, env); - run_sh(cmd.as_str()).expect("Failed to execute command"); + let output = run_sh(cmd.as_str()); + assert!(output.status.success(), "Command failed with status: {}", output.status); // Get the item ID let list_output = Command::new("sh")