Skip to content

Commit

Permalink
remove duplicate addition of args in invalid config test
Browse files Browse the repository at this point in the history
  • Loading branch information
samkim-crypto committed Mar 11, 2024
1 parent 598abb8 commit a863f08
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions token/cli/tests/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ use assert_cmd::cmd::Command;
#[test]
fn invalid_config_will_cause_commands_to_fail() {
let mut cmd = Command::cargo_bin("spl-token").unwrap();
let args = &["address", "--config", "~/nonexistent/config.yml"];
cmd.args(args)
.assert()
cmd.args(["address", "--config", "~/nonexistent/config.yml"]);
cmd.assert()
.stderr("error: Could not find config file `~/nonexistent/config.yml`\n");
cmd.args(args).assert().code(1).failure();
cmd.assert().code(1).failure();
}

0 comments on commit a863f08

Please sign in to comment.