From 8b2505297864aab985dc8806037c9f46a0b3d815 Mon Sep 17 00:00:00 2001 From: Brooks Date: Wed, 14 Jun 2023 14:11:35 -0400 Subject: [PATCH] Removes unnecessary call to `purge_old_bank_snapshots()` in local-cluster test (#32111) --- local-cluster/tests/local_cluster.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/local-cluster/tests/local_cluster.rs b/local-cluster/tests/local_cluster.rs index cac866261..30900acdc 100644 --- a/local-cluster/tests/local_cluster.rs +++ b/local-cluster/tests/local_cluster.rs @@ -1108,14 +1108,6 @@ fn test_incremental_snapshot_download_with_crossing_full_snapshot_interval_at_st info!( "Restarting the validator with full snapshot {validator_full_snapshot_slot_at_startup}..." ); - // To restart, it is not enough to remove the old bank snapshot directories under snapshot/. - // The old hardlinks under /snapshot/ should also be removed. - // The purge call covers all of them. - snapshot_utils::purge_old_bank_snapshots( - validator_snapshot_test_config.bank_snapshots_dir, - 0, - None, - ); cluster.restart_node( &validator_identity.pubkey(), validator_info,