Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit a2138db

Browse files
authored
snapshot test requires using snapshot archives at startup (#33885)
1 parent 0873705 commit a2138db

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

local-cluster/tests/local_cluster.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,12 +765,16 @@ fn test_incremental_snapshot_download_with_crossing_full_snapshot_interval_at_st
765765
accounts_hash_interval,
766766
num_account_paths,
767767
);
768-
let validator_snapshot_test_config = SnapshotValidatorConfig::new(
768+
let mut validator_snapshot_test_config = SnapshotValidatorConfig::new(
769769
full_snapshot_interval,
770770
incremental_snapshot_interval,
771771
accounts_hash_interval,
772772
num_account_paths,
773773
);
774+
// The test has asserts that require the validator always boots from snapshot archives
775+
validator_snapshot_test_config
776+
.validator_config
777+
.use_snapshot_archives_at_startup = UseSnapshotArchivesAtStartup::Always;
774778
let stake = DEFAULT_NODE_STAKE;
775779
let mut config = ClusterConfig {
776780
node_stakes: vec![stake],

0 commit comments

Comments
 (0)