Skip to content

Commit

Permalink
snapshot test requires using snapshot archives at startup (#33885)
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Oct 27, 2023
1 parent 0873705 commit a2138db
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion local-cluster/tests/local_cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit a2138db

Please sign in to comment.