@@ -611,7 +611,7 @@ fn test_cp_arg_interactive_update_overwrite_older() {
611611 // Option N
612612 let ( at, mut ucmd) = at_and_ucmd ! ( ) ;
613613 at. touch ( "b" ) ;
614- std :: thread :: sleep ( Duration :: from_secs ( 1 ) ) ;
614+ sleep ( Duration :: from_millis ( 100 ) ) ;
615615 at. touch ( "a" ) ;
616616 ucmd. args ( & [ "-i" , "-u" , "a" , "b" ] )
617617 . pipe_in ( "N\n " )
@@ -623,7 +623,7 @@ fn test_cp_arg_interactive_update_overwrite_older() {
623623 // Option Y
624624 let ( at, mut ucmd) = at_and_ucmd ! ( ) ;
625625 at. touch ( "b" ) ;
626- std :: thread :: sleep ( Duration :: from_secs ( 1 ) ) ;
626+ sleep ( Duration :: from_millis ( 100 ) ) ;
627627 at. touch ( "a" ) ;
628628 ucmd. args ( & [ "-i" , "-u" , "a" , "b" ] )
629629 . pipe_in ( "Y\n " )
@@ -2241,7 +2241,7 @@ fn test_cp_no_preserve_timestamps() {
22412241 previous,
22422242 )
22432243 . unwrap ( ) ;
2244- sleep ( Duration :: from_secs ( 3 ) ) ;
2244+ sleep ( Duration :: from_millis ( 100 ) ) ;
22452245
22462246 ucmd. arg ( TEST_HELLO_WORLD_SOURCE )
22472247 . arg ( "--no-preserve=timestamps" )
@@ -5686,7 +5686,7 @@ fn test_dir_perm_race_with_preserve_mode_and_ownership() {
56865686 if at. dir_exists ( & format ! ( "{DEST_DIR}/{SRC_DIR}" ) ) {
56875687 break ;
56885688 }
5689- std :: thread :: sleep ( Duration :: from_millis ( 100 ) ) ;
5689+ sleep ( Duration :: from_millis ( 100 ) ) ;
56905690 }
56915691 let mode = at. metadata ( & format ! ( "{DEST_DIR}/{SRC_DIR}" ) ) . mode ( ) ;
56925692 #[ allow( clippy:: unnecessary_cast, clippy:: cast_lossless) ]
0 commit comments