Skip to content

Commit

Permalink
Merge pull request #7244 from sylvestre/sleep
Browse files Browse the repository at this point in the history
Decrease more sleep
  • Loading branch information
cakebaker authored Jan 31, 2025
2 parents ba0d54c + 8c201c1 commit 3891ee1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/by-util/test_cp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ fn test_cp_arg_interactive_update_overwrite_older() {
// Option N
let (at, mut ucmd) = at_and_ucmd!();
at.touch("b");
std::thread::sleep(Duration::from_secs(1));
sleep(Duration::from_millis(100));
at.touch("a");
ucmd.args(&["-i", "-u", "a", "b"])
.pipe_in("N\n")
Expand All @@ -623,7 +623,7 @@ fn test_cp_arg_interactive_update_overwrite_older() {
// Option Y
let (at, mut ucmd) = at_and_ucmd!();
at.touch("b");
std::thread::sleep(Duration::from_secs(1));
sleep(Duration::from_millis(100));
at.touch("a");
ucmd.args(&["-i", "-u", "a", "b"])
.pipe_in("Y\n")
Expand Down Expand Up @@ -2241,7 +2241,7 @@ fn test_cp_no_preserve_timestamps() {
previous,
)
.unwrap();
sleep(Duration::from_secs(3));
sleep(Duration::from_millis(100));

ucmd.arg(TEST_HELLO_WORLD_SOURCE)
.arg("--no-preserve=timestamps")
Expand Down Expand Up @@ -5686,7 +5686,7 @@ fn test_dir_perm_race_with_preserve_mode_and_ownership() {
if at.dir_exists(&format!("{DEST_DIR}/{SRC_DIR}")) {
break;
}
std::thread::sleep(Duration::from_millis(100));
sleep(Duration::from_millis(100));
}
let mode = at.metadata(&format!("{DEST_DIR}/{SRC_DIR}")).mode();
#[allow(clippy::unnecessary_cast, clippy::cast_lossless)]
Expand Down

0 comments on commit 3891ee1

Please sign in to comment.