Skip to content

Commit

Permalink
tests: solana-test-validator tests run sequentially
Browse files Browse the repository at this point in the history
  • Loading branch information
roberts-pumpurs committed Jan 13, 2025
1 parent bfbd3f2 commit caa23e6
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
41 changes: 41 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/solana-listener/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ solana-rpc-client-api.workspace = true
solana-rpc.workspace = true
test-log.workspace = true
pretty_assertions.workspace = true
serial_test = "3.2.0"

[lints]
workspace = true
1 change: 1 addition & 0 deletions crates/solana-listener/src/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ mod tests {

#[test_log::test(tokio::test)]
#[expect(clippy::unimplemented, reason = "needed for the test")]
#[serial_test::serial]
async fn can_receive_realtime_tx_events() {
// 1. setup
let mut fixture = setup().await;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,13 @@ pub(crate) mod test {
}

#[test_log::test(tokio::test)]
#[serial_test::serial]
async fn can_initialize_gateway() {
let _fixture = setup().await;
}

#[test_log::test(tokio::test)]
#[serial_test::serial]
async fn signature_range_fetcher() {
let mut fixture = setup().await;
let (gas_config, gas_init_sig, counter_pda, _init_memo_sig) =
Expand Down Expand Up @@ -459,6 +461,7 @@ pub(crate) mod test {
}

#[test_log::test(tokio::test)]
#[serial_test::serial]
async fn fetch_large_range_of_signatures() {
let mut fixture = setup().await;
let (gas_config, _gas_init_sig, counter_pda, _init_memo_sig) =
Expand Down

0 comments on commit caa23e6

Please sign in to comment.