Skip to content

Commit

Permalink
Marks local-cluster tests with #[serial] (#3466)
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Nov 4, 2024
1 parent 990d711 commit 2c3d436
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions local-cluster/tests/local_cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ use {
};

#[test]
#[serial]
fn test_local_cluster_start_and_exit() {
solana_logger::setup();
let num_nodes = 1;
Expand All @@ -115,6 +116,7 @@ fn test_local_cluster_start_and_exit() {
}

#[test]
#[serial]
fn test_local_cluster_start_and_exit_with_config() {
solana_logger::setup();
const NUM_NODES: usize = 1;
Expand Down Expand Up @@ -1535,6 +1537,7 @@ fn test_fake_shreds_broadcast_leader() {
}

#[test]
#[serial]
fn test_wait_for_max_stake() {
solana_logger::setup_with_default(RUST_LOG_FILTER);
let validator_config = ValidatorConfig::default_for_test();
Expand Down Expand Up @@ -1584,6 +1587,7 @@ fn test_wait_for_max_stake() {
}

#[test]
#[serial]
// Test that when a leader is leader for banks B_i..B_{i+n}, and B_i is not
// votable, then B_{i+1} still chains to B_i
fn test_no_voting() {
Expand Down Expand Up @@ -2083,6 +2087,7 @@ fn restart_whole_cluster_after_hard_fork(
}

#[test]
#[serial]
fn test_hard_fork_invalidates_tower() {
solana_logger::setup_with_default(RUST_LOG_FILTER);

Expand Down Expand Up @@ -4429,6 +4434,7 @@ fn test_leader_failure_4() {
// slot_hash expiry to 64 slots.

#[test]
#[serial]
fn test_slot_hash_expiry() {
solana_logger::setup_with_default(RUST_LOG_FILTER);
solana_sdk::slot_hashes::set_entries_for_tests_only(64);
Expand Down

0 comments on commit 2c3d436

Please sign in to comment.