Skip to content

Commit

Permalink
test that config errors don't effect the exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
ducaale committed Aug 2, 2021
1 parent aee1a42 commit 97bd685
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,8 @@ fn read_args_from_config() {
.arg("sort=asc")
.arg("limit=100")
.assert()
.stdout("sort=asc&limit=100\n\n");
.stdout("sort=asc&limit=100\n\n")
.success();
}

#[test]
Expand All @@ -1360,5 +1361,6 @@ fn warns_if_config_is_invalid() {
.arg(":")
.arg("--offline")
.assert()
.stderr(contains("Unable to parse config file"));
.stderr(contains("Unable to parse config file"))
.success();
}

0 comments on commit 97bd685

Please sign in to comment.