Skip to content

Commit 9c530bb

Browse files
author
jimcockburn
committed
formatting
1 parent 3d13efc commit 9c530bb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_backoff.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ def test_exponential_with_jitter_backoff(monkeypatch: pytest.MonkeyPatch) -> Non
1111

1212
bo = ExponentialWithJitterBackoff(cap=5, base=1)
1313

14-
assert bo.compute(0) == 0.25 # min(5, 0.25*2^0)
15-
assert bo.compute(1) == 1.0 # min(5, 0.5*2^1)
16-
assert bo.compute(2) == 3.0 # min(5, 0.75*2^2)
17-
assert bo.compute(3) == 5.0 # min(5, 1*2^3)
18-
assert bo.compute(4) == 5.0 # min(5, 0.9*2^4)
14+
assert bo.compute(0) == 0.25 # min(5, 0.25*2^0)
15+
assert bo.compute(1) == 1.0 # min(5, 0.5*2^1)
16+
assert bo.compute(2) == 3.0 # min(5, 0.75*2^2)
17+
assert bo.compute(3) == 5.0 # min(5, 1*2^3)
18+
assert bo.compute(4) == 5.0 # min(5, 0.9*2^4)

0 commit comments

Comments
 (0)