Skip to content

Commit

Permalink
Increase sleep time to 10ms to reduce flakes on fast computers aka Micha
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Jul 25, 2023
1 parent fab2553 commit c90f332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ruff_cli/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ mod tests {
// Write the same contents to the source file (updating the modified time)
// We must sleep for a millisecond or this can happen too fast on some systems resulting in a modified time collision.
// Once `std::fs::File.set_modified` is stable we can use that instead.
std::thread::sleep(std::time::Duration::from_millis(1));
std::thread::sleep(std::time::Duration::from_millis(10));
test_cache.write_source_file("source.py", source);

let got_diagnostics = test_cache
Expand Down

0 comments on commit c90f332

Please sign in to comment.