Removes unnecessary call to `purge_old_bank_snapshots()` in local-cluster test (#32111)

This commit is contained in:
Brooks 2023-06-14 14:11:35 -04:00 committed by GitHub
parent f487dfbc77
commit 8b25052978
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 8 deletions

View File

@ -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 <account_path>/snapshot/<slot> 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,