Skip to content

Commit

Permalink
add debug info, show stderr + check status code in rama-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
glendc committed Jun 2, 2024
1 parent fe7cace commit 9a3e526
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cli_tests/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,19 @@ impl RamaService {
.unwrap()
.command()
.stdout(std::process::Stdio::piped())
.stderr(std::process::Stdio::piped())
.args(args)
.spawn()
.unwrap();

let output = child.wait_with_output()?;
assert!(output.status.success());
let output = String::from_utf8(output.stdout)?;
Ok(output)
}

/// Run the http command
pub fn http(input_args: Vec<&'static str>) -> Result<String, Box<dyn std::error::Error>> {
let mut args = vec!["http", "-v", "--all", "-F"];
let mut args = vec!["http", "--debug", "-v", "--all", "-F"];
args.extend(input_args);
Self::run(args)
}
Expand Down

0 comments on commit 9a3e526

Please sign in to comment.