TestValidator public interface cleanup
This commit is contained in:
@@ -957,7 +957,7 @@ mod tests {
|
||||
alice,
|
||||
ledger_path,
|
||||
..
|
||||
} = TestValidator::run();
|
||||
} = TestValidator::with_no_fee();
|
||||
let url = get_rpc_request_str(leader_data.rpc, false);
|
||||
let client = RpcClient::new_with_commitment(url, CommitmentConfig::recent());
|
||||
test_process_distribute_tokens_with_client(&client, alice, None);
|
||||
@@ -975,7 +975,7 @@ mod tests {
|
||||
alice,
|
||||
ledger_path,
|
||||
..
|
||||
} = TestValidator::run();
|
||||
} = TestValidator::with_no_fee();
|
||||
let url = get_rpc_request_str(leader_data.rpc, false);
|
||||
let client = RpcClient::new_with_commitment(url, CommitmentConfig::recent());
|
||||
test_process_distribute_tokens_with_client(&client, alice, Some(sol_to_lamports(1.5)));
|
||||
@@ -993,7 +993,7 @@ mod tests {
|
||||
alice,
|
||||
ledger_path,
|
||||
..
|
||||
} = TestValidator::run();
|
||||
} = TestValidator::with_no_fee();
|
||||
let url = get_rpc_request_str(leader_data.rpc, false);
|
||||
let client = RpcClient::new_with_commitment(url, CommitmentConfig::recent());
|
||||
test_process_distribute_stake_with_client(&client, alice);
|
||||
@@ -1315,7 +1315,7 @@ mod tests {
|
||||
alice,
|
||||
ledger_path,
|
||||
..
|
||||
} = TestValidator::run_with_fees(fees);
|
||||
} = TestValidator::with_custom_fee(fees);
|
||||
let url = get_rpc_request_str(leader_data.rpc, false);
|
||||
let client = RpcClient::new_with_commitment(url, CommitmentConfig::recent());
|
||||
let sender_keypair_file = tmp_file_path("keypair_file", &alice.pubkey());
|
||||
@@ -1417,7 +1417,7 @@ mod tests {
|
||||
alice,
|
||||
ledger_path,
|
||||
..
|
||||
} = TestValidator::run_with_fees(fees);
|
||||
} = TestValidator::with_custom_fee(fees);
|
||||
let url = get_rpc_request_str(leader_data.rpc, false);
|
||||
let client = RpcClient::new_with_commitment(url, CommitmentConfig::recent());
|
||||
|
||||
@@ -1546,7 +1546,7 @@ mod tests {
|
||||
alice,
|
||||
ledger_path,
|
||||
..
|
||||
} = TestValidator::run_with_fees(fees);
|
||||
} = TestValidator::with_custom_fee(fees);
|
||||
let url = get_rpc_request_str(leader_data.rpc, false);
|
||||
let client = RpcClient::new_with_commitment(url, CommitmentConfig::recent());
|
||||
|
||||
@@ -1672,7 +1672,7 @@ mod tests {
|
||||
alice,
|
||||
ledger_path,
|
||||
..
|
||||
} = TestValidator::run_with_fees(fees);
|
||||
} = TestValidator::with_custom_fee(fees);
|
||||
let url = get_rpc_request_str(leader_data.rpc, false);
|
||||
let client = RpcClient::new_with_commitment(url, CommitmentConfig::recent());
|
||||
|
||||
|
@@ -12,7 +12,7 @@ fn test_process_distribute_with_rpc_client() {
|
||||
alice,
|
||||
ledger_path,
|
||||
..
|
||||
} = TestValidator::run();
|
||||
} = TestValidator::with_no_fee();
|
||||
|
||||
let client = RpcClient::new_socket(leader_data.rpc);
|
||||
test_process_distribute_tokens_with_client(&client, alice, None);
|
||||
|
Reference in New Issue
Block a user