diff --git a/fs-storage/src/file_storage.rs b/fs-storage/src/file_storage.rs index 36b9d9ff..8de6f37a 100644 --- a/fs-storage/src/file_storage.rs +++ b/fs-storage/src/file_storage.rs @@ -377,6 +377,7 @@ mod tests { .unwrap() .modified() .unwrap(); + std::thread::sleep(std::time::Duration::from_secs(1)); file_storage.write_fs().unwrap(); let after_write = fs::metadata(&storage_path) .unwrap() @@ -448,6 +449,7 @@ mod tests { file_storage.sync_status().unwrap(), SyncStatus::StorageStale ); + std::thread::sleep(std::time::Duration::from_secs(1)); file_storage.write_fs().unwrap(); // `write_fs()` updates the storage on disk, so the storage is in sync assert_eq!(file_storage.sync_status().unwrap(), SyncStatus::InSync);