Skip to content

Commit

Permalink
Fix snapshot download test (solana-labs#29457)
Browse files Browse the repository at this point in the history
snapshot download tests will now attempt to load the downloaded snapshot
  • Loading branch information
bw-solana authored and gnapoli23 committed Jan 10, 2023
1 parent 405323a commit 3bf998b
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions local-cluster/tests/local_cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -489,10 +489,6 @@ fn test_snapshot_download() {
.validator_config
.snapshot_config
.full_snapshot_archives_dir;
let incremental_snapshot_archives_dir = &leader_snapshot_test_config
.validator_config
.snapshot_config
.incremental_snapshot_archives_dir;

trace!("Waiting for snapshot");
let full_snapshot_archive_info = cluster.wait_for_next_full_snapshot(
Expand All @@ -504,8 +500,14 @@ fn test_snapshot_download() {
// Download the snapshot, then boot a validator from it.
download_snapshot_archive(
&cluster.entry_point_info.rpc,
full_snapshot_archives_dir,
incremental_snapshot_archives_dir,
&validator_snapshot_test_config
.validator_config
.snapshot_config
.full_snapshot_archives_dir,
&validator_snapshot_test_config
.validator_config
.snapshot_config
.incremental_snapshot_archives_dir,
(
full_snapshot_archive_info.slot(),
*full_snapshot_archive_info.hash(),
Expand Down Expand Up @@ -629,8 +631,14 @@ fn test_incremental_snapshot_download() {
// Download the snapshots, then boot a validator from them.
download_snapshot_archive(
&cluster.entry_point_info.rpc,
full_snapshot_archives_dir,
incremental_snapshot_archives_dir,
&validator_snapshot_test_config
.validator_config
.snapshot_config
.full_snapshot_archives_dir,
&validator_snapshot_test_config
.validator_config
.snapshot_config
.incremental_snapshot_archives_dir,
(
full_snapshot_archive_info.slot(),
*full_snapshot_archive_info.hash(),
Expand Down

0 comments on commit 3bf998b

Please sign in to comment.