Skip to content

Commit aaa1ef3

Browse files
test: round backoff in exponential backoff tests (#1191)
1 parent e2bba73 commit aaa1ef3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/test_refresh_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def test_exponential_backoff(attempt: int, low: int, high: int) -> None:
168168
"""
169169
Test _exponential_backoff produces times (in ms) in the proper range.
170170
"""
171-
backoff = _exponential_backoff(attempt)
171+
backoff = round(_exponential_backoff(attempt))
172172
assert backoff >= low
173173
assert backoff <= high
174174

0 commit comments

Comments
 (0)