From 97cce6b5506747eeb194f517c5cd9af658349990 Mon Sep 17 00:00:00 2001 From: Folkert de Vries Date: Wed, 13 Nov 2024 15:07:30 +0100 Subject: [PATCH] `.bzip2.rs`: sleep for a bit longer to really verify timestamp is updated --- tests/quick.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/quick.rs b/tests/quick.rs index 1e673dada..89a4c8f10 100644 --- a/tests/quick.rs +++ b/tests/quick.rs @@ -804,7 +804,7 @@ mod decompress_command { let input_metadata = std::fs::metadata(&sample1_tar_bz2).unwrap(); // sleep so that we'd notice if the timestamp was not set correctly - std::thread::sleep(Duration::from_secs(1)); + std::thread::sleep(Duration::from_millis(1700)); expect_success!( cmd.arg("-d").arg("-vvvf").arg(&sample1_tar_bz2), @@ -1570,7 +1570,7 @@ mod compress_command { let input_metadata = std::fs::metadata(&sample1_ref).unwrap(); // sleep so that we'd notice if the timestamp was not set correctly - std::thread::sleep(Duration::from_secs(1)); + std::thread::sleep(Duration::from_millis(1700)); expect_success!( cmd.arg("-z").arg("-vvvf").arg(&sample1_ref),