From a2138dba986d83901712f65fe589810bc753f538 Mon Sep 17 00:00:00 2001 From: Brooks Date: Fri, 27 Oct 2023 00:26:51 -0400 Subject: [PATCH] snapshot test requires using snapshot archives at startup (#33885) --- local-cluster/tests/local_cluster.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/local-cluster/tests/local_cluster.rs b/local-cluster/tests/local_cluster.rs index 658fdf0de..d675feda0 100644 --- a/local-cluster/tests/local_cluster.rs +++ b/local-cluster/tests/local_cluster.rs @@ -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],