nit: fix variable names (#16283)

This commit is contained in:
Jack May
2021-03-31 23:18:29 -07:00
committed by GitHub
parent da27acabcc
commit aa45e81b3e
2 changed files with 36 additions and 36 deletions

View File

@@ -2529,12 +2529,12 @@ mod tests {
);
// Test Deploy Subcommand
let test_deploy =
let test_command =
test_commands
.clone()
.get_matches_from(vec!["test", "deploy", "/Users/test/program.o"]);
assert_eq!(
parse_command(&test_deploy, &default_signer, &mut None).unwrap(),
parse_command(&test_command, &default_signer, &mut None).unwrap(),
CliCommandInfo {
command: CliCommand::Deploy {
program_location: "/Users/test/program.o".to_string(),
@@ -2549,14 +2549,14 @@ mod tests {
let custom_address = Keypair::new();
let custom_address_file = make_tmp_path("custom_address_file");
write_keypair_file(&custom_address, &custom_address_file).unwrap();
let test_deploy = test_commands.clone().get_matches_from(vec![
let test_command = test_commands.clone().get_matches_from(vec![
"test",
"deploy",
"/Users/test/program.o",
&custom_address_file,
]);
assert_eq!(
parse_command(&test_deploy, &default_signer, &mut None).unwrap(),
parse_command(&test_command, &default_signer, &mut None).unwrap(),
CliCommandInfo {
command: CliCommand::Deploy {
program_location: "/Users/test/program.o".to_string(),