File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -321,7 +321,7 @@ mod tests {
321321 ) ;
322322 let path = TempDir :: with_prefix ( "foo" )
323323 . unwrap ( )
324- . into_path ( )
324+ . keep ( )
325325 . join ( "access.json" ) ;
326326 store_access_record ( & record, path. clone ( ) ) . unwrap ( ) ;
327327 let loaded = load_worker_access_file ( & path) . unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -1903,7 +1903,7 @@ mod tests {
19031903 run_test ( async |mut ctx : TestCtx | {
19041904 let make_dir = || {
19051905 let tempdir = TempDir :: with_prefix ( "hq" ) . unwrap ( ) ;
1906- tempdir. into_path ( )
1906+ tempdir. keep ( )
19071907 } ;
19081908
19091909 let max_kept = 2 ;
@@ -2488,7 +2488,7 @@ mod tests {
24882488 WrappedRcRefCell :: wrap ( ( ) ) ,
24892489 move |_, _| async move {
24902490 let tempdir = TempDir :: with_prefix ( "hq" ) . unwrap ( ) ;
2491- let dir = tempdir. into_path ( ) ;
2491+ let dir = tempdir. keep ( ) ;
24922492
24932493 Ok ( AllocationSubmissionResult :: new (
24942494 Err ( anyhow:: anyhow!( "failure" ) ) ,
@@ -2508,7 +2508,7 @@ mod tests {
25082508 move |state, _worker_count| async move {
25092509 let mut state = state. get_mut ( ) ;
25102510 let tempdir = TempDir :: with_prefix ( "hq" ) . unwrap ( ) ;
2511- let dir = tempdir. into_path ( ) ;
2511+ let dir = tempdir. keep ( ) ;
25122512
25132513 state. allocation_attempts += 1 ;
25142514
Original file line number Diff line number Diff line change @@ -412,13 +412,13 @@ mod tests {
412412 #[ tokio:: test]
413413 async fn test_status_empty_directory ( ) {
414414 let tmp_dir = TempDir :: with_prefix ( "foo" ) . unwrap ( ) ;
415- assert ! ( get_server_status( & tmp_dir. into_path ( ) ) . await . is_err( ) ) ;
415+ assert ! ( get_server_status( & tmp_dir. keep ( ) ) . await . is_err( ) ) ;
416416 }
417417
418418 #[ tokio:: test]
419419 async fn test_status_directory_with_access_file ( ) {
420420 let tmp_dir = TempDir :: with_prefix ( "foo" ) . unwrap ( ) ;
421- let tmp_path = tmp_dir. into_path ( ) ;
421+ let tmp_path = tmp_dir. keep ( ) ;
422422 let server_dir = ServerDir :: open ( & tmp_path) . unwrap ( ) ;
423423 let record = FullAccessRecord :: new (
424424 ConnectAccessRecordPart {
@@ -441,7 +441,7 @@ mod tests {
441441
442442 #[ tokio:: test]
443443 async fn test_status_directory_with_symlink ( ) {
444- let tmp_dir = TempDir :: with_prefix ( "foo" ) . unwrap ( ) . into_path ( ) ;
444+ let tmp_dir = TempDir :: with_prefix ( "foo" ) . unwrap ( ) . keep ( ) ;
445445 let actual_dir = tmp_dir. join ( "server-dir" ) ;
446446 std:: fs:: create_dir ( & actual_dir) . unwrap ( ) ;
447447 std:: os:: unix:: fs:: symlink ( & actual_dir, tmp_dir. join ( SYMLINK_PATH ) ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments