Skip to content

Commit

Permalink
chore: increase aidrops in forester
Browse files Browse the repository at this point in the history
  • Loading branch information
ananas-block committed Jun 29, 2024
1 parent b74db53 commit fe0fd53
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 12 deletions.
4 changes: 2 additions & 2 deletions forester/tests/e2e_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async fn test_state_tree_nullifier() {

let mut rpc = SolanaRpcConnection::new(SolanaRpcUrl::Localnet, None);

rpc.airdrop_lamports(&rpc.get_payer().pubkey(), LAMPORTS_PER_SOL * 1000)
rpc.airdrop_lamports(&rpc.get_payer().pubkey(), LAMPORTS_PER_SOL * 100_000)
.await
.unwrap();

Expand Down Expand Up @@ -101,7 +101,7 @@ async fn test_1_all() {
let env_accounts = get_test_env_accounts();
let mut rpc = SolanaRpcConnection::new(SolanaRpcUrl::Localnet, None);

rpc.airdrop_lamports(&rpc.get_payer().pubkey(), LAMPORTS_PER_SOL * 1000)
rpc.airdrop_lamports(&rpc.get_payer().pubkey(), LAMPORTS_PER_SOL * 100_000)
.await
.unwrap();

Expand Down
2 changes: 1 addition & 1 deletion forester/tests/empty_address_tree_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async fn empty_address_tree_test() {

let mut rpc = SolanaRpcConnection::new(SolanaRpcUrl::Localnet, None);

rpc.airdrop_lamports(&rpc.get_payer().pubkey(), LAMPORTS_PER_SOL * 1000)
rpc.airdrop_lamports(&rpc.get_payer().pubkey(), LAMPORTS_PER_SOL * 100_000)
.await
.unwrap();

Expand Down
2 changes: 1 addition & 1 deletion forester/tests/interop_address_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async fn test_photon_interop_address() {
let mut rpc = SolanaRpcConnection::new(services_config.rpc_url, None);

// Airdrop because currently TestEnv.new() transfers funds from get_payer.
rpc.airdrop_lamports(&rpc.get_payer().pubkey(), LAMPORTS_PER_SOL * 1000)
rpc.airdrop_lamports(&rpc.get_payer().pubkey(), LAMPORTS_PER_SOL * 100_000)
.await
.unwrap();

Expand Down
12 changes: 4 additions & 8 deletions test-utils/src/e2e_test_env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,17 +212,13 @@ where
.await;
let payer = rpc.get_payer().insecure_clone();

airdrop_lamports(&mut rpc, &payer.pubkey(), 100_000_000_000_000)
airdrop_lamports(&mut rpc, &payer.pubkey(), 1_000_000_000_000)
.await
.unwrap();

airdrop_lamports(
&mut rpc,
&env_accounts.forester.pubkey(),
100_000_000_000_000,
)
.await
.unwrap();
airdrop_lamports(&mut rpc, &env_accounts.forester.pubkey(), 1_000_000_000_000)
.await
.unwrap();
let mut thread_rng = ThreadRng::default();
let random_seed = thread_rng.next_u64();
let seed: u64 = seed.unwrap_or(random_seed);
Expand Down
1 change: 1 addition & 0 deletions test-utils/src/rpc/solana_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ impl RpcConnection for SolanaRpcConnection {
.request_airdrop(to, lamports)
.map_err(RpcError::from)?;
// TODO: Find a different way this can result in an infinite loop
println!("Airdrop signature: {:?}", signature);
loop {
let confirmed = self
.client
Expand Down

0 comments on commit fe0fd53

Please sign in to comment.