Skip to content

Commit

Permalink
less delay
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 67bf35b commit 5c481bd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs-storage/src/file_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5c481bd

Please sign in to comment.