Skip to content

Commit

Permalink
tests: additional assert_success to help in debugging cat and `snap…
Browse files Browse the repository at this point in the history
…py` tests
  • Loading branch information
jqnatividad committed Nov 21, 2024
1 parent 94bda2f commit 557aba4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_cat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ where

let mut cmd = wrk.command("cat");
modify_cmd(cmd.arg(which).arg("in1.csv").arg("in2.csv"));
wrk.assert_success(&mut cmd);
wrk.read_stdout(&mut cmd)
}

Expand Down
2 changes: 2 additions & 0 deletions tests/test_snappy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ fn snappy_automatic_decompression() {
let mut cmd = wrk.command("count");
cmd.arg(test_file);

wrk.assert_success(&mut cmd);

let got: String = wrk.stdout(&mut cmd);
let expected = "100";
assert_eq!(got, expected);
Expand Down

0 comments on commit 557aba4

Please sign in to comment.