@@ -1718,7 +1718,7 @@ pub mod tests {
17181718 let registered_proof_window_post = RegisteredPoStProof :: StackedDrgWindow2KiBV1_1 ;
17191719
17201720 let cache_dir = tempfile:: tempdir ( ) ?;
1721- let cache_dir_path = cache_dir. into_path ( ) ;
1721+ let cache_dir_path = cache_dir. keep ( ) . unwrap ( ) ;
17221722 let cache_dir_path_ref = as_bytes ( & cache_dir_path) ;
17231723
17241724 let prover_id = [ 1u8 ; 32 ] ;
@@ -1962,9 +1962,9 @@ pub mod tests {
19621962 let registered_proof_empty_sector_update = RegisteredUpdateProof :: StackedDrg2KiBV1 ;
19631963
19641964 let new_cache_dir = tempfile:: tempdir ( ) ?;
1965- let new_cache_dir_path = new_cache_dir. into_path ( ) ;
1965+ let new_cache_dir_path = new_cache_dir. keep ( ) . unwrap ( ) ;
19661966 let removed_data_dir = tempfile:: tempdir ( ) ?;
1967- let removed_data_dir_path = removed_data_dir. into_path ( ) ;
1967+ let removed_data_dir_path = removed_data_dir. keep ( ) . unwrap ( ) ;
19681968
19691969 let buf_b: Vec < u8 > = ( 0 ..2032 ) . map ( |_| rng. gen ( ) ) . collect ( ) ;
19701970 let mut piece_file_c = tempfile:: tempfile ( ) ?;
@@ -2817,10 +2817,7 @@ pub mod tests {
28172817
28182818 fn test_faulty_sectors_inner ( registered_proof_seal : RegisteredSealProof ) -> Result < ( ) > {
28192819 // miscellaneous setup and shared values
2820- let registered_proof_window_post = RegisteredPoStProof :: StackedDrgWindow2KiBV1_1 ;
2821-
2822- let cache_dir = tempfile:: tempdir ( ) ?;
2823- let cache_dir_path = cache_dir. into_path ( ) ;
2820+ let cache_dir_path = cache_dir. keep ( ) . unwrap ( ) ;
28242821 let cache_dir_path_ref = as_bytes ( & cache_dir_path) ;
28252822
28262823 let prover_id = [ 1u8 ; 32 ] ;
@@ -3009,7 +3006,7 @@ pub mod tests {
30093006 ) -> Result < ( ) > {
30103007 // miscellaneous setup and shared values
30113008 let cache_dir = tempfile:: tempdir ( ) ?;
3012- let cache_dir_path = cache_dir. into_path ( ) ;
3009+ let cache_dir_path = cache_dir. keep ( ) . unwrap ( ) ;
30133010 let cache_dir_path_ref = as_bytes ( & cache_dir_path) ;
30143011
30153012 let prover_id = [ 1u8 ; 32 ] ;
0 commit comments