default some tests to write cache = true (#28917)

This commit is contained in:
Jeff Washington (jwash) 2022-11-21 17:53:39 -06:00 committed by GitHub
parent efc681b348
commit 20d8b5e98b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -244,6 +244,7 @@ impl Default for ValidatorConfig {
impl ValidatorConfig {
pub fn default_for_test() -> Self {
Self {
accounts_db_caching_enabled: true,
enforce_ulimit_nofile: false,
rpc_config: JsonRpcConfig::default_for_test(),
..Self::default()

View File

@ -2229,6 +2229,7 @@ fn test_hard_fork_with_gap_in_roots() {
let validator_config = ValidatorConfig {
snapshot_config: Some(LocalCluster::create_dummy_load_only_snapshot_config()),
accounts_db_caching_enabled: true,
..ValidatorConfig::default()
};
let mut config = ClusterConfig {