token: Bump compute units in tests (#2752)

This commit is contained in:
Jon Cinque 2022-01-18 13:15:08 +01:00 committed by GitHub
parent 602d74779c
commit 0a61bc4ea3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ async fn initialize_mint() {
#[tokio::test]
async fn initialize_account() {
let mut pt = ProgramTest::new("spl_token_2022", id(), processor!(Processor::process));
pt.set_compute_max_units(6_000); // last known 3284
pt.set_compute_max_units(7_000); // last known 3284
let (mut banks_client, payer, recent_blockhash) = pt.start().await;
let owner = Keypair::new();
@ -112,7 +112,7 @@ async fn initialize_account() {
#[tokio::test]
async fn mint_to() {
let mut pt = ProgramTest::new("spl_token_2022", id(), processor!(Processor::process));
pt.set_compute_max_units(6_000); // last known 2668
pt.set_compute_max_units(7_000); // last known 2668
let (mut banks_client, payer, recent_blockhash) = pt.start().await;
let owner = Keypair::new();
@ -229,7 +229,7 @@ async fn transfer() {
#[tokio::test]
async fn burn() {
let mut pt = ProgramTest::new("spl_token_2022", id(), processor!(Processor::process));
pt.set_compute_max_units(6_000); // last known 2655
pt.set_compute_max_units(7_000); // last known 2655
let (mut banks_client, payer, recent_blockhash) = pt.start().await;
let owner = Keypair::new();