Skip to content

Commit

Permalink
will the delay fix it?
Browse files Browse the repository at this point in the history
Signed-off-by: Tarek <[email protected]>
  • Loading branch information
tareknaser committed Jun 11, 2024
1 parent 58f148a commit 11ebaae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs-storage/src/file_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
"{}",
Expand Down

0 comments on commit 11ebaae

Please sign in to comment.