local-cluster test: Do not delete files that are in use by node (#30389)

This commit is contained in:
Brooks 2023-02-17 12:15:08 -05:00 committed by GitHub
parent ec4f33b024
commit 0a79a7882c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 12 deletions

View File

@ -1187,18 +1187,7 @@ fn test_incremental_snapshot_download_with_crossing_full_snapshot_interval_at_st
num_account_paths,
);
// Copy over the snapshots to the new node, but need to remove the tmp snapshot dir so it
// doesn't break the simple copy_files closure.
snapshot_utils::remove_tmp_snapshot_archives(
validator_snapshot_test_config
.full_snapshot_archives_dir
.path(),
);
snapshot_utils::remove_tmp_snapshot_archives(
validator_snapshot_test_config
.incremental_snapshot_archives_dir
.path(),
);
// Copy over the snapshots to the new node that it will boot from
copy_files(
validator_snapshot_test_config
.full_snapshot_archives_dir