|
|
@@ -12,7 +12,7 @@ use {
|
|
|
solana_cli_output::{parse_sign_only_reply_string, OutputFormat},
|
|
|
solana_commitment_config::CommitmentConfig,
|
|
|
solana_epoch_schedule::EpochSchedule,
|
|
|
- solana_faucet::faucet::run_local_faucet,
|
|
|
+ solana_faucet::faucet::run_local_faucet_with_unique_port_for_tests,
|
|
|
solana_fee_calculator::FeeRateGovernor,
|
|
|
solana_fee_structure::FeeStructure,
|
|
|
solana_keypair::{keypair_from_seed, Keypair},
|
|
|
@@ -39,7 +39,7 @@ fn test_stake_delegation_force() {
|
|
|
let mint_keypair = Keypair::new();
|
|
|
let mint_pubkey = mint_keypair.pubkey();
|
|
|
let authorized_withdrawer = Keypair::new().pubkey();
|
|
|
- let faucet_addr = run_local_faucet(mint_keypair, None);
|
|
|
+ let faucet_addr = run_local_faucet_with_unique_port_for_tests(mint_keypair);
|
|
|
let slots_per_epoch = 32;
|
|
|
let test_validator = TestValidatorGenesis::default()
|
|
|
.fee_rate_governor(FeeRateGovernor::new(0, 0))
|
|
|
@@ -204,7 +204,7 @@ fn test_seed_stake_delegation_and_deactivation(compute_unit_price: Option<u64>)
|
|
|
|
|
|
let mint_keypair = Keypair::new();
|
|
|
let mint_pubkey = mint_keypair.pubkey();
|
|
|
- let faucet_addr = run_local_faucet(mint_keypair, None);
|
|
|
+ let faucet_addr = run_local_faucet_with_unique_port_for_tests(mint_keypair);
|
|
|
let test_validator =
|
|
|
TestValidator::with_no_fees(mint_pubkey, Some(faucet_addr), SocketAddrSpace::Unspecified);
|
|
|
|
|
|
@@ -299,7 +299,7 @@ fn test_stake_delegation_and_withdraw_available() {
|
|
|
|
|
|
let mint_keypair = Keypair::new();
|
|
|
let mint_pubkey = mint_keypair.pubkey();
|
|
|
- let faucet_addr = run_local_faucet(mint_keypair, None);
|
|
|
+ let faucet_addr = run_local_faucet_with_unique_port_for_tests(mint_keypair);
|
|
|
let test_validator =
|
|
|
TestValidator::with_no_fees(mint_pubkey, Some(faucet_addr), SocketAddrSpace::Unspecified);
|
|
|
|
|
|
@@ -468,7 +468,7 @@ fn test_stake_delegation_and_withdraw_all() {
|
|
|
|
|
|
let mint_keypair = Keypair::new();
|
|
|
let mint_pubkey = mint_keypair.pubkey();
|
|
|
- let faucet_addr = run_local_faucet(mint_keypair, None);
|
|
|
+ let faucet_addr = run_local_faucet_with_unique_port_for_tests(mint_keypair);
|
|
|
let test_validator =
|
|
|
TestValidator::with_no_fees(mint_pubkey, Some(faucet_addr), SocketAddrSpace::Unspecified);
|
|
|
|
|
|
@@ -633,7 +633,7 @@ fn test_stake_delegation_and_deactivation(compute_unit_price: Option<u64>) {
|
|
|
|
|
|
let mint_keypair = Keypair::new();
|
|
|
let mint_pubkey = mint_keypair.pubkey();
|
|
|
- let faucet_addr = run_local_faucet(mint_keypair, None);
|
|
|
+ let faucet_addr = run_local_faucet_with_unique_port_for_tests(mint_keypair);
|
|
|
let test_validator =
|
|
|
TestValidator::with_no_fees(mint_pubkey, Some(faucet_addr), SocketAddrSpace::Unspecified);
|
|
|
|
|
|
@@ -725,7 +725,7 @@ fn test_offline_stake_delegation_and_deactivation(compute_unit_price: Option<u64
|
|
|
|
|
|
let mint_keypair = Keypair::new();
|
|
|
let mint_pubkey = mint_keypair.pubkey();
|
|
|
- let faucet_addr = run_local_faucet(mint_keypair, None);
|
|
|
+ let faucet_addr = run_local_faucet_with_unique_port_for_tests(mint_keypair);
|
|
|
let test_validator =
|
|
|
TestValidator::with_no_fees(mint_pubkey, Some(faucet_addr), SocketAddrSpace::Unspecified);
|
|
|
|
|
|
@@ -885,7 +885,7 @@ fn test_nonced_stake_delegation_and_deactivation(compute_unit_price: Option<u64>
|
|
|
|
|
|
let mint_keypair = Keypair::new();
|
|
|
let mint_pubkey = mint_keypair.pubkey();
|
|
|
- let faucet_addr = run_local_faucet(mint_keypair, None);
|
|
|
+ let faucet_addr = run_local_faucet_with_unique_port_for_tests(mint_keypair);
|
|
|
let test_validator =
|
|
|
TestValidator::with_no_fees(mint_pubkey, Some(faucet_addr), SocketAddrSpace::Unspecified);
|
|
|
|
|
|
@@ -1014,7 +1014,7 @@ fn test_stake_authorize(compute_unit_price: Option<u64>) {
|
|
|
|
|
|
let mint_keypair = Keypair::new();
|
|
|
let mint_pubkey = mint_keypair.pubkey();
|
|
|
- let faucet_addr = run_local_faucet(mint_keypair, None);
|
|
|
+ let faucet_addr = run_local_faucet_with_unique_port_for_tests(mint_keypair);
|
|
|
let test_validator =
|
|
|
TestValidator::with_no_fees(mint_pubkey, Some(faucet_addr), SocketAddrSpace::Unspecified);
|
|
|
|
|
|
@@ -1344,7 +1344,7 @@ fn test_stake_authorize_with_fee_payer() {
|
|
|
|
|
|
let mint_keypair = Keypair::new();
|
|
|
let mint_pubkey = mint_keypair.pubkey();
|
|
|
- let faucet_addr = run_local_faucet(mint_keypair, None);
|
|
|
+ let faucet_addr = run_local_faucet_with_unique_port_for_tests(mint_keypair);
|
|
|
let test_validator = TestValidator::with_custom_fees(
|
|
|
mint_pubkey,
|
|
|
fee_one_sig,
|
|
|
@@ -1524,7 +1524,7 @@ fn test_stake_split(compute_unit_price: Option<u64>) {
|
|
|
|
|
|
let mint_keypair = Keypair::new();
|
|
|
let mint_pubkey = mint_keypair.pubkey();
|
|
|
- let faucet_addr = run_local_faucet(mint_keypair, None);
|
|
|
+ let faucet_addr = run_local_faucet_with_unique_port_for_tests(mint_keypair);
|
|
|
let test_validator = TestValidator::with_custom_fees(
|
|
|
mint_pubkey,
|
|
|
1,
|
|
|
@@ -1685,7 +1685,7 @@ fn test_stake_set_lockup(compute_unit_price: Option<u64>) {
|
|
|
|
|
|
let mint_keypair = Keypair::new();
|
|
|
let mint_pubkey = mint_keypair.pubkey();
|
|
|
- let faucet_addr = run_local_faucet(mint_keypair, None);
|
|
|
+ let faucet_addr = run_local_faucet_with_unique_port_for_tests(mint_keypair);
|
|
|
let test_validator = TestValidator::with_custom_fees(
|
|
|
mint_pubkey,
|
|
|
1,
|
|
|
@@ -1973,7 +1973,7 @@ fn test_offline_nonced_create_stake_account_and_withdraw(compute_unit_price: Opt
|
|
|
|
|
|
let mint_keypair = Keypair::new();
|
|
|
let mint_pubkey = mint_keypair.pubkey();
|
|
|
- let faucet_addr = run_local_faucet(mint_keypair, None);
|
|
|
+ let faucet_addr = run_local_faucet_with_unique_port_for_tests(mint_keypair);
|
|
|
let test_validator =
|
|
|
TestValidator::with_no_fees(mint_pubkey, Some(faucet_addr), SocketAddrSpace::Unspecified);
|
|
|
|
|
|
@@ -2216,7 +2216,7 @@ fn test_stake_checked_instructions() {
|
|
|
|
|
|
let mint_keypair = Keypair::new();
|
|
|
let mint_pubkey = mint_keypair.pubkey();
|
|
|
- let faucet_addr = run_local_faucet(mint_keypair, None);
|
|
|
+ let faucet_addr = run_local_faucet_with_unique_port_for_tests(mint_keypair);
|
|
|
let test_validator =
|
|
|
TestValidator::with_no_fees(mint_pubkey, Some(faucet_addr), SocketAddrSpace::Unspecified);
|
|
|
|