Skip to content

Commit

Permalink
add delay in tests after file write
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 3831efc commit 27fb9a4
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 @@ -375,6 +375,7 @@ mod tests {
.modified()
.unwrap();
file_storage.write_fs().unwrap();
std::thread::sleep(std::time::Duration::from_secs(1));
let after_write = fs::metadata(&storage_path)
.unwrap()
.modified()
Expand Down Expand Up @@ -418,6 +419,7 @@ mod tests {
);

mirror_storage.write_fs().unwrap();
std::thread::sleep(std::time::Duration::from_secs(1));
assert_eq!(mirror_storage.sync_status().unwrap(), SyncStatus::InSync);

// receive updates from external data manipulation
Expand Down

0 comments on commit 27fb9a4

Please sign in to comment.