TestValidator public interface cleanup

This commit is contained in:
Michael Vines
2020-11-25 14:14:45 -08:00
parent 5e2d38227f
commit b5f7e39be8
14 changed files with 92 additions and 120 deletions

View File

@ -62,7 +62,7 @@ fn test_rpc_send_tx() {
alice,
ledger_path,
..
} = TestValidator::run();
} = TestValidator::with_no_fee();
let bob_pubkey = solana_sdk::pubkey::new_rand();
let req = json_req!("getRecentBlockhash", json!([]));
@ -127,7 +127,7 @@ fn test_rpc_invalid_requests() {
leader_data,
ledger_path,
..
} = TestValidator::run();
} = TestValidator::with_no_fee();
let bob_pubkey = solana_sdk::pubkey::new_rand();
// test invalid get_balance request
@ -166,7 +166,7 @@ fn test_rpc_subscriptions() {
ledger_path,
genesis_hash,
..
} = TestValidator::run();
} = TestValidator::with_no_fee();
let transactions_socket = UdpSocket::bind("0.0.0.0:0").unwrap();
transactions_socket.connect(leader_data.tpu).unwrap();