Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit a863f08

Browse files
committed
remove duplicate addition of args in invalid config test
1 parent 598abb8 commit a863f08

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

token/cli/tests/config.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ use assert_cmd::cmd::Command;
33
#[test]
44
fn invalid_config_will_cause_commands_to_fail() {
55
let mut cmd = Command::cargo_bin("spl-token").unwrap();
6-
let args = &["address", "--config", "~/nonexistent/config.yml"];
7-
cmd.args(args)
8-
.assert()
6+
cmd.args(["address", "--config", "~/nonexistent/config.yml"]);
7+
cmd.assert()
98
.stderr("error: Could not find config file `~/nonexistent/config.yml`\n");
10-
cmd.args(args).assert().code(1).failure();
9+
cmd.assert().code(1).failure();
1110
}

0 commit comments

Comments
 (0)