Don't create keypair files with r+go (#7051)

This commit is contained in:
Michael Vines
2019-11-19 18:26:21 -07:00
committed by GitHub
parent 716caeb17c
commit 7151b92239
2 changed files with 37 additions and 10 deletions

View File

@ -1482,7 +1482,7 @@ mod tests {
use serde_json::Value;
use solana_client::mock_rpc_client_request::SIGNATURE;
use solana_sdk::{
signature::{gen_keypair_file, read_keypair_file},
signature::{read_keypair_file, write_keypair_file},
transaction::TransactionError,
};
use std::path::PathBuf;
@ -1540,7 +1540,7 @@ mod tests {
// Test Balance Subcommand, incl pubkey and keypair-file inputs
let keypair_file = make_tmp_path("keypair_file");
gen_keypair_file(&keypair_file).unwrap();
write_keypair_file(&Keypair::new(), &keypair_file).unwrap();
let keypair = read_keypair_file(&keypair_file).unwrap();
let test_balance = test_commands.clone().get_matches_from(vec![
"test",