Skip to content

Commit aaa68fc

Browse files
committed
make tests serial
1 parent bb1e536 commit aaa68fc

5 files changed

Lines changed: 47 additions & 1 deletion

File tree

‎account-comparison/programs/account-comparison/tests/test_compressed_account.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ async fn test_create_compressed_account() {
1818
let name = "Heinrich".to_string();
1919

2020
let config = ProgramTestConfig::new(
21-
false, // TODO: enable once cli with new prover server is released
21+
true,
2222
Some(vec![("account_comparison", account_comparison::ID)]),
2323
);
2424
let mut rpc = LightProgramTest::new(config).await.unwrap();

‎create-and-update/Cargo.lock‎

Lines changed: 41 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎create-and-update/Cargo.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ light-program-test = "0.15.0"
2323
light-client = "0.15.0"
2424
tokio = "1.43.0"
2525
solana-sdk = "2.2"
26+
serial_test = "3.2.0"

‎create-and-update/tests/test.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ use light_sdk::{
1313
address::v1::derive_address,
1414
instruction::{account_meta::CompressedAccountMeta, PackedAccounts, SystemAccountMetaConfig},
1515
};
16+
use serial_test::serial;
1617
use solana_sdk::{
1718
instruction::Instruction,
1819
signature::{Keypair, Signature, Signer},
1920
};
2021

22+
#[serial]
2123
#[tokio::test]
2224
async fn test_create_compressed_account() {
2325
let config = ProgramTestConfig::new(

‎create-and-update/tests/test_create_two_accounts.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ use light_sdk::{
1010
address::v1::derive_address,
1111
instruction::{PackedAccounts, SystemAccountMetaConfig},
1212
};
13+
use serial_test::serial;
1314
use solana_sdk::{
1415
instruction::Instruction,
1516
signature::{Keypair, Signature, Signer},
1617
};
1718

19+
#[serial]
1820
#[tokio::test]
1921
async fn test_create_two_accounts() {
2022
let config = ProgramTestConfig::new(

0 commit comments

Comments
 (0)