From 44b817e97176cf38f2c670be3d634e6bfd9612c7 Mon Sep 17 00:00:00 2001 From: nonergodic Date: Thu, 4 Apr 2024 14:29:31 -0700 Subject: [PATCH] fix tests by upping compute units for variance in ata creation --- .../programs/token-dispenser/src/tests/dispenser_simulator.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/token-dispenser/programs/token-dispenser/src/tests/dispenser_simulator.rs b/token-dispenser/programs/token-dispenser/src/tests/dispenser_simulator.rs index f2b41a80..9281c20d 100644 --- a/token-dispenser/programs/token-dispenser/src/tests/dispenser_simulator.rs +++ b/token-dispenser/programs/token-dispenser/src/tests/dispenser_simulator.rs @@ -90,7 +90,8 @@ pub struct DispenserSimulator { impl DispenserSimulator { pub async fn new() -> Self { - let program_test = ProgramTest::new("token_dispenser", crate::id(), None); + let mut program_test = ProgramTest::new("token_dispenser", crate::id(), None); + program_test.set_compute_max_units(400000); let (banks_client, genesis_keypair, recent_blockhash) = program_test.start().await; let mint_keypair = Keypair::new(); let pyth_mint_authority = Keypair::new();