Skip to content

Commit

Permalink
add delay EVERYWHERE
Browse files Browse the repository at this point in the history
Signed-off-by: Tarek <[email protected]>
  • Loading branch information
tareknaser committed Jun 12, 2024
1 parent 14d8270 commit cb8e0aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs-storage/src/file_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit cb8e0aa

Please sign in to comment.