snapshot test requires using snapshot archives at startup (#33885)

This commit is contained in:
Brooks 2023-10-27 00:26:51 -04:00 committed by GitHub
parent 0873705c1b
commit a2138dba98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -765,12 +765,16 @@ fn test_incremental_snapshot_download_with_crossing_full_snapshot_interval_at_st
accounts_hash_interval,
num_account_paths,
);
let validator_snapshot_test_config = SnapshotValidatorConfig::new(
let mut validator_snapshot_test_config = SnapshotValidatorConfig::new(
full_snapshot_interval,
incremental_snapshot_interval,
accounts_hash_interval,
num_account_paths,
);
// The test has asserts that require the validator always boots from snapshot archives
validator_snapshot_test_config
.validator_config
.use_snapshot_archives_at_startup = UseSnapshotArchivesAtStartup::Always;
let stake = DEFAULT_NODE_STAKE;
let mut config = ClusterConfig {
node_stakes: vec![stake],