From 4178dfdacef3b26b426bc791bbf98b299e5bb223 Mon Sep 17 00:00:00 2001 From: Sergey Timoshin Date: Thu, 27 Jun 2024 18:52:01 +0100 Subject: [PATCH] Add system-cpi-test to package.json and update test The package.json file was updated to include the system-cpi-test to the list of test commands. Additionally, the 'derivation' field was added to the test_program_owned_trees.rs file in the system-cpi-test to enhance the testing structure. --- programs/package.json | 1 + test-programs/system-cpi-test/tests/test_program_owned_trees.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/programs/package.json b/programs/package.json index ca628e90cd..cdb8210867 100644 --- a/programs/package.json +++ b/programs/package.json @@ -13,6 +13,7 @@ "test-system": "cargo test-sbf -p system-test -- --test-threads=1", "test-compressed-token": "cargo test-sbf -p compressed-token-test -- --test-threads=1", "test-registry": "cargo-test-sbf -p registry-test -- --test-threads=1", + "test-cpi": "cargo-test-sbf -p system-cpi-test -- --test-threads=1", "token-escrow": "cargo-test-sbf -p token-escrow -- --test-threads=1 --features cpi-context idl-build", "program-owned-account-test": "cargo-test-sbf -p program-owned-account-test -- --test-threads=1", "random-e2e-test": "RUST_MIN_STACK=8388608 cargo-test-sbf -p e2e-test -- --nocapture --test-threads=1" diff --git a/test-programs/system-cpi-test/tests/test_program_owned_trees.rs b/test-programs/system-cpi-test/tests/test_program_owned_trees.rs index 3d76147997..6ed7abf283 100644 --- a/test-programs/system-cpi-test/tests/test_program_owned_trees.rs +++ b/test-programs/system-cpi-test/tests/test_program_owned_trees.rs @@ -449,6 +449,7 @@ async fn test_invalid_registered_program() { leaves_queue_indices: vec![1u16], indices: vec![0u64], proofs: vec![vec![[0u8; 32]; 26]], + derivation: env.forester.pubkey() }; let ix = create_nullify_instruction(inputs);