* Improve TestValidator instantiation (#13627)
* Add TestValidator::new_with_fees constructor, and warning for low bootstrap_validator_lamports
* Add logging to solana-tokens integration test to help catch low bootstrap_validator_lamports in the future
* Reasonable TestValidator mint_lamports
(cherry picked from commit ef99689592
)
# Conflicts:
# tokens/Cargo.toml
# tokens/tests/commands.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
15 lines
538 B
Rust
15 lines
538 B
Rust
use solana_client::rpc_client::RpcClient;
|
|
use solana_core::test_validator::TestValidator;
|
|
use solana_tokens::commands::test_process_distribute_tokens_with_client;
|
|
use std::fs::remove_dir_all;
|
|
|
|
#[test]
|
|
fn test_process_distribute_with_rpc_client() {
|
|
let validator = TestValidator::run();
|
|
let rpc_client = RpcClient::new_socket(validator.leader_data.rpc);
|
|
test_process_distribute_tokens_with_client(rpc_client, validator.alice, None);
|
|
|
|
validator.server.close().unwrap();
|
|
remove_dir_all(validator.ledger_path).unwrap();
|
|
}
|