File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2907,7 +2907,7 @@ fn test_copy_through_dangling_symlink_no_dereference_permissions() {
29072907 // target name link name
29082908 at. symlink_file ( "no-such-file" , "dangle" ) ;
29092909 // to check if access time and modification time didn't change
2910- sleep ( Duration :: from_millis ( 5000 ) ) ;
2910+ sleep ( Duration :: from_millis ( 100 ) ) ;
29112911 // don't dereference the link
29122912 // | copy permissions, too
29132913 // | | from the link
Original file line number Diff line number Diff line change @@ -577,7 +577,7 @@ fn test_install_copy_then_compare_file_with_extra_mode() {
577577
578578 let mut file2_meta = at. metadata ( file2) ;
579579 let before = FileTime :: from_last_modification_time ( & file2_meta) ;
580- sleep ( std:: time:: Duration :: from_millis ( 1000 ) ) ;
580+ sleep ( std:: time:: Duration :: from_millis ( 100 ) ) ;
581581
582582 scene
583583 . ucmd ( )
@@ -594,7 +594,7 @@ fn test_install_copy_then_compare_file_with_extra_mode() {
594594
595595 assert ! ( before != after_install_sticky) ;
596596
597- sleep ( std:: time:: Duration :: from_millis ( 1000 ) ) ;
597+ sleep ( std:: time:: Duration :: from_millis ( 100 ) ) ;
598598
599599 // dest file still 1644, so need_copy ought to return `true`
600600 scene
Original file line number Diff line number Diff line change @@ -381,7 +381,7 @@ fn test_newer_file() {
381381 let scenario = TestScenario :: new ( util_name ! ( ) ) ;
382382
383383 scenario. fixtures . touch ( "regular_file" ) ;
384- sleep ( std:: time:: Duration :: from_millis ( 1000 ) ) ;
384+ sleep ( std:: time:: Duration :: from_millis ( 100 ) ) ;
385385 scenario. fixtures . touch ( "newer_file" ) ;
386386
387387 scenario
@@ -949,7 +949,7 @@ fn test_file_N() {
949949 scene. ucmd ( ) . args ( & [ "-N" , "regular_file" ] ) . fails ( ) ;
950950 // The file will have different create/modified data
951951 // so, test -N will return 0
952- sleep ( std:: time:: Duration :: from_millis ( 1000 ) ) ;
952+ sleep ( std:: time:: Duration :: from_millis ( 100 ) ) ;
953953 at. touch ( "regular_file" ) ;
954954 scene. ucmd ( ) . args ( & [ "-N" , "regular_file" ] ) . succeeds ( ) ;
955955}
You can’t perform that action at this time.
0 commit comments