From 9f769bb4ce34fa1dafe7dd3efbd4ae342c659e0b Mon Sep 17 00:00:00 2001 From: Brennan Watt Date: Mon, 2 Jan 2023 07:58:09 -0800 Subject: [PATCH] Fix snapshot download test --- local-cluster/tests/local_cluster.rs | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/local-cluster/tests/local_cluster.rs b/local-cluster/tests/local_cluster.rs index d62403c0681354..fdd5f8697242ec 100644 --- a/local-cluster/tests/local_cluster.rs +++ b/local-cluster/tests/local_cluster.rs @@ -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( @@ -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(), @@ -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(),