Browse Source

tests: Bump compute units for zc test (#1187)

Armani Ferrante 3 years ago
parent
commit
f4fe7d4440
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/zero-copy/programs/zero-copy/tests/compute_unit_test.rs

+ 2 - 2
tests/zero-copy/programs/zero-copy/tests/compute_unit_test.rs

@@ -1,7 +1,6 @@
 #![cfg(feature = "test-bpf")]
 #![cfg(feature = "test-bpf")]
 
 
 use {
 use {
-    std::rc::Rc,
     anchor_client::{
     anchor_client::{
         anchor_lang::Discriminator,
         anchor_lang::Discriminator,
         solana_sdk::{
         solana_sdk::{
@@ -14,6 +13,7 @@ use {
         Client, Cluster,
         Client, Cluster,
     },
     },
     solana_program_test::{tokio, ProgramTest},
     solana_program_test::{tokio, ProgramTest},
+    std::rc::Rc,
 };
 };
 
 
 #[tokio::test]
 #[tokio::test]
@@ -38,7 +38,7 @@ async fn update_foo() {
 
 
     let mut pt = ProgramTest::new("zero_copy", zero_copy::id(), None);
     let mut pt = ProgramTest::new("zero_copy", zero_copy::id(), None);
     pt.add_account(foo_pubkey, foo_account);
     pt.add_account(foo_pubkey, foo_account);
-    pt.set_bpf_compute_max_units(2077);
+    pt.set_bpf_compute_max_units(3077);
     let (mut banks_client, payer, recent_blockhash) = pt.start().await;
     let (mut banks_client, payer, recent_blockhash) = pt.start().await;
 
 
     let client = Client::new_with_options(
     let client = Client::new_with_options(