Skip to content

Commit

Permalink
Use ThreadLocalMultiIterator for tests (solana-labs#34947)
Browse files Browse the repository at this point in the history
* Use ThreadLocalMultiIterator for tests

* some validator config was not using default_for_test
  • Loading branch information
apfitzge authored Jan 25, 2024
1 parent 26d62b9 commit 29737ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions core/src/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ impl ValidatorConfig {
Self {
enforce_ulimit_nofile: false,
rpc_config: JsonRpcConfig::default_for_test(),
block_production_method: BlockProductionMethod::ThreadLocalMultiIterator,
..Self::default()
}
}
Expand Down
4 changes: 2 additions & 2 deletions local-cluster/tests/local_cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2268,7 +2268,7 @@ fn test_hard_fork_with_gap_in_roots() {

let validator_config = ValidatorConfig {
snapshot_config: LocalCluster::create_dummy_load_only_snapshot_config(),
..ValidatorConfig::default()
..ValidatorConfig::default_for_test()
};
let mut config = ClusterConfig {
cluster_lamports: 100_000,
Expand Down Expand Up @@ -5236,7 +5236,7 @@ fn test_duplicate_shreds_switch_failure() {
validator_keypair,
validator_config: ValidatorConfig {
voting_disabled,
..ValidatorConfig::default()
..ValidatorConfig::default_for_test()
},
in_genesis,
}
Expand Down

0 comments on commit 29737ab

Please sign in to comment.