diff --git a/tests/by-util/test_cp.rs b/tests/by-util/test_cp.rs index e44f35b879..e54e98e7ec 100644 --- a/tests/by-util/test_cp.rs +++ b/tests/by-util/test_cp.rs @@ -2907,7 +2907,7 @@ fn test_copy_through_dangling_symlink_no_dereference_permissions() { // target name link name at.symlink_file("no-such-file", "dangle"); // to check if access time and modification time didn't change - sleep(Duration::from_millis(5000)); + sleep(Duration::from_millis(100)); // don't dereference the link // | copy permissions, too // | | from the link diff --git a/tests/by-util/test_install.rs b/tests/by-util/test_install.rs index 9c6e48c7b9..77be3a5ab1 100644 --- a/tests/by-util/test_install.rs +++ b/tests/by-util/test_install.rs @@ -577,7 +577,7 @@ fn test_install_copy_then_compare_file_with_extra_mode() { let mut file2_meta = at.metadata(file2); let before = FileTime::from_last_modification_time(&file2_meta); - sleep(std::time::Duration::from_millis(1000)); + sleep(std::time::Duration::from_millis(100)); scene .ucmd() @@ -594,7 +594,7 @@ fn test_install_copy_then_compare_file_with_extra_mode() { assert!(before != after_install_sticky); - sleep(std::time::Duration::from_millis(1000)); + sleep(std::time::Duration::from_millis(100)); // dest file still 1644, so need_copy ought to return `true` scene diff --git a/tests/by-util/test_test.rs b/tests/by-util/test_test.rs index 22976dd9ee..d331417900 100644 --- a/tests/by-util/test_test.rs +++ b/tests/by-util/test_test.rs @@ -381,7 +381,7 @@ fn test_newer_file() { let scenario = TestScenario::new(util_name!()); scenario.fixtures.touch("regular_file"); - sleep(std::time::Duration::from_millis(1000)); + sleep(std::time::Duration::from_millis(100)); scenario.fixtures.touch("newer_file"); scenario @@ -949,7 +949,7 @@ fn test_file_N() { scene.ucmd().args(&["-N", "regular_file"]).fails(); // The file will have different create/modified data // so, test -N will return 0 - sleep(std::time::Duration::from_millis(1000)); + sleep(std::time::Duration::from_millis(100)); at.touch("regular_file"); scene.ucmd().args(&["-N", "regular_file"]).succeeds(); }