Skip to content

Commit

Permalink
test: add nextest.toml to limit concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
roberts-pumpurs committed Jan 21, 2025
1 parent 7e771bb commit 2f3861b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
12 changes: 10 additions & 2 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
[test-groups]
rest-service-same-port = { max-threads = 1 }
serial-integration = { max-threads = 1 }

[[profile.default.overrides]]
filter = 'package(solana-listener)'
threads-required = 2

[[profile.default.overrides]]
filter = 'package(solana-event-forwarder)'
threads-required = 2

[[profile.default.overrides]]
filter = 'package(rest-service)'
test-group = 'rest-service-same-port'
test-group = 'serial-integration'
6 changes: 0 additions & 6 deletions crates/solana-event-forwarder/src/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,6 @@ mod tests {
use crate::SolanaEventForwarder;

#[test_log::test(tokio::test)]
#[serial]
async fn event_forwrding_only_call_contract() {
// setup
let (mut fixture, rpc_client) = setup().await;
Expand Down Expand Up @@ -684,7 +683,6 @@ mod tests {
}

#[test_log::test(tokio::test)]
#[serial]
async fn event_forwrding_message_approved() {
// setup
let (mut fixture, rpc_client) = setup().await;
Expand Down Expand Up @@ -778,7 +776,6 @@ mod tests {
}

#[test_log::test(tokio::test)]
#[serial]
async fn event_forwrding_two_message_approved() {
// setup
let (mut fixture, rpc_client) = setup().await;
Expand Down Expand Up @@ -901,7 +898,6 @@ mod tests {
}

#[test_log::test(tokio::test)]
#[serial]
async fn event_forwrding_execute_message() {
// setup
let (mut fixture, rpc_client) = setup().await;
Expand Down Expand Up @@ -1191,7 +1187,6 @@ mod tests {
}

#[test_log::test(tokio::test)]
#[serial]
async fn event_forwrding_only_gas_event() {
// setup
let (mut fixture, rpc_client) = setup().await;
Expand Down Expand Up @@ -1278,7 +1273,6 @@ mod tests {
}

#[test_log::test(tokio::test)]
#[serial]
async fn event_forwrding_with_gas_and_contract_call() {
// setup
let (mut fixture, rpc_client) = setup().await;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,13 +333,11 @@ pub(crate) mod test {
}

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

#[test_log::test(tokio::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 @@ -466,7 +464,6 @@ pub(crate) mod test {
}

#[test_log::test(tokio::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 2f3861b

Please sign in to comment.