Skip to content

Commit

Permalink
deactivate native_programs_consume_cu feature for zk-token-proof tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tao-stones committed Mar 17, 2023
1 parent 4ee8ef0 commit da7a35d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions programs/zk-token-proof-tests/tests/process_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,9 @@ async fn test_verify_proof_without_context<T, U>(
T: Pod + ZkProofData<U>,
U: Pod,
{
let mut context = ProgramTest::default().start_with_context().await;
let mut program_test = ProgramTest::default();
program_test.deactivate_feature(solana_sdk::feature_set::native_programs_consume_cu::id());
let mut context = program_test.start_with_context().await;

let client = &mut context.banks_client;
let payer = &context.payer;
Expand Down Expand Up @@ -395,7 +397,9 @@ async fn test_verify_proof_with_context<T, U>(
T: Pod + ZkProofData<U>,
U: Pod,
{
let mut context = ProgramTest::default().start_with_context().await;
let mut program_test = ProgramTest::default();
program_test.deactivate_feature(solana_sdk::feature_set::native_programs_consume_cu::id());
let mut context = program_test.start_with_context().await;
let rent = context.banks_client.get_rent().await.unwrap();

let client = &mut context.banks_client;
Expand Down Expand Up @@ -597,7 +601,9 @@ async fn test_close_context_state<T, U>(
T: Pod + ZkProofData<U>,
U: Pod,
{
let mut context = ProgramTest::default().start_with_context().await;
let mut program_test = ProgramTest::default();
program_test.deactivate_feature(solana_sdk::feature_set::native_programs_consume_cu::id());
let mut context = program_test.start_with_context().await;
let rent = context.banks_client.get_rent().await.unwrap();

let client = &mut context.banks_client;
Expand Down

0 comments on commit da7a35d

Please sign in to comment.