Skip to content

Commit b9d2471

Browse files
committed
fix: add test serial
1 parent 9f25af8 commit b9d2471

4 files changed

Lines changed: 7 additions & 0 deletions

File tree

Cargo.lock

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

sdk-tests/sdk-anchor-test/programs/sdk-anchor-test/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ light-hasher = { workspace = true, features = ["solana"] }
2626
anchor-lang = { workspace = true }
2727
light-sdk = { workspace = true, features = ["anchor", "v2"] }
2828
light-sdk-types = { workspace = true }
29+
serial_test = { workspace = true }
2930

3031
[target.'cfg(not(target_os = "solana"))'.dependencies]
3132
solana-sdk = { workspace = true }

sdk-tests/sdk-anchor-test/programs/sdk-anchor-test/tests/read_only.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ use light_sdk::{
1313
};
1414
use light_test_utils::{Rpc, RpcError};
1515
use sdk_anchor_test::MyCompressedAccount;
16+
use serial_test::serial;
1617
use solana_sdk::{
1718
instruction::{AccountMeta, Instruction},
1819
signature::{Keypair, Signature, Signer},
1920
};
2021

22+
#[serial]
2123
#[tokio::test]
2224
async fn test_read_sha256() {
2325
let config =
@@ -57,6 +59,7 @@ async fn test_read_sha256() {
5759
.unwrap();
5860
}
5961

62+
#[serial]
6063
#[tokio::test]
6164
async fn test_read_poseidon() {
6265
let config =

sdk-tests/sdk-anchor-test/programs/sdk-anchor-test/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
};
1414
use light_test_utils::{Rpc, RpcError};
1515
use sdk_anchor_test::{MyCompressedAccount, NestedData};
16+
use serial_test::serial;
1617
use solana_sdk::{
1718
instruction::{AccountMeta, Instruction},
1819
signature::{Keypair, Signature, Signer},
1920
};
2021

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

0 commit comments

Comments
 (0)