Skip to content

Commit

Permalink
Fix flaky test_wall_clock (#6879)
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky authored Aug 12, 2022
1 parent 99a2db1 commit 75ef3c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distributed/tests/test_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def test_wall_clock(name):
# Resolution
deltas = [sj - si for si, sj in zip(samples[:-1], samples[1:])]
assert min(deltas) >= 0.0, deltas
assert max(deltas) <= 0.001, deltas
assert max(deltas) <= 0.005, deltas
assert any(0.0 < d < 0.0001 for d in deltas), deltas
# Close to time.time() / time.monotonic()
assert t - 0.5 < samples[0] < t + 0.5

0 comments on commit 75ef3c9

Please sign in to comment.