From 1b0aaf1607219299adb948ab67823eaeb75f8ffc Mon Sep 17 00:00:00 2001 From: Brooks Prumo Date: Mon, 12 Dec 2022 18:29:36 -0500 Subject: [PATCH] Makes a new PathBuf instead of moving the test's TempDir (#29220) --- core/tests/epoch_accounts_hash.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tests/epoch_accounts_hash.rs b/core/tests/epoch_accounts_hash.rs index bebbeb1b9c..39dbebd71c 100755 --- a/core/tests/epoch_accounts_hash.rs +++ b/core/tests/epoch_accounts_hash.rs @@ -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,