Skip to content

Commit

Permalink
Reduce tolerance in test assertion timings
Browse files Browse the repository at this point in the history
  • Loading branch information
DanNixon committed May 12, 2024
1 parent 3b9e9ce commit ac1526f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/testing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ macro_rules! assert_future_in {

let finish = tokio::time::Instant::now();

let tolerance = Duration::from_millis(500);
let tolerance = Duration::from_millis(100);

let late = finish.checked_duration_since($expected_at);
let early = $expected_at.checked_duration_since(finish);

Expand Down

0 comments on commit ac1526f

Please sign in to comment.