From 5c481bd6d6d6c96249d7e56c1da722a37cbba162 Mon Sep 17 00:00:00 2001 From: Tarek Date: Wed, 12 Jun 2024 23:11:32 +0300 Subject: [PATCH] less delay Signed-off-by: Tarek --- fs-storage/src/file_storage.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs-storage/src/file_storage.rs b/fs-storage/src/file_storage.rs index 8fe0dd06..f1250250 100644 --- a/fs-storage/src/file_storage.rs +++ b/fs-storage/src/file_storage.rs @@ -412,8 +412,7 @@ mod tests { .modified() .unwrap(); - // 1 second sleep to ensure the timestamp is updated - std::thread::sleep(std::time::Duration::from_secs(1)); + std::thread::sleep(std::time::Duration::from_micros(1)); let mut file = fs::File::create(&storage_path).unwrap(); file.write_all(b"test").unwrap();