From 11ebaae1e25b9e927d39ced987ec145878fb0b5e Mon Sep 17 00:00:00 2001 From: Tarek Date: Wed, 12 Jun 2024 02:17:35 +0300 Subject: [PATCH] will the delay fix it? Signed-off-by: Tarek --- fs-storage/src/file_storage.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs-storage/src/file_storage.rs b/fs-storage/src/file_storage.rs index 7e42f397..93c8b461 100644 --- a/fs-storage/src/file_storage.rs +++ b/fs-storage/src/file_storage.rs @@ -390,6 +390,9 @@ mod tests { .modified() .expect("Failed to get modified time"); + // Introduce a small delay to ensure the filesystem has time to update the timestamp + std::thread::sleep(std::time::Duration::from_secs(1)); + assert!( timestamp_after > timestamp_before, "{}",