Makes a new PathBuf instead of moving the test's TempDir (#29220)

This commit is contained in:
Brooks Prumo 2022-12-12 18:29:36 -05:00 committed by GitHub
parent 249607dbfe
commit 1b0aaf1607
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -444,7 +444,7 @@ fn test_snapshots_have_expected_epoch_accounts_hash() {
let accounts_dir = TempDir::new().unwrap();
let deserialized_bank = snapshot_utils::bank_from_snapshot_archives(
&[accounts_dir.into_path()],
&[accounts_dir.path().to_path_buf()],
&snapshot_config.bank_snapshots_dir,
&full_snapshot_archive_info,
None,