Skip to content

Commit

Permalink
test: round backoff in exponential backoff tests (#1191)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwotherspoon authored Nov 19, 2024
1 parent e2bba73 commit aaa1ef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/test_refresh_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def test_exponential_backoff(attempt: int, low: int, high: int) -> None:
"""
Test _exponential_backoff produces times (in ms) in the proper range.
"""
backoff = _exponential_backoff(attempt)
backoff = round(_exponential_backoff(attempt))
assert backoff >= low
assert backoff <= high

Expand Down

0 comments on commit aaa1ef3

Please sign in to comment.