Skip to content

Commit

Permalink
chore: update changelog and test
Browse files Browse the repository at this point in the history
  • Loading branch information
barrett-schonefeld committed Sep 15, 2021
1 parent bbbe5d5 commit 2c156a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions changelog/2393.feature.rst
@@ -0,0 +1,5 @@
Replaces ``Retry.BACK0FF_MAX`` with ``Retry.DEFAULT_BACKOFF_MAX``.

Adds a configurable ``backoff_max`` parameter to the ``Retry`` class.
If a custom ``backoff_max`` is provided to the ``Retry`` class, it
will replace the ``Retry.DEFAULT_BACKOFF_MAX``.
3 changes: 3 additions & 0 deletions test/test_retry.py
Expand Up @@ -176,6 +176,9 @@ def test_configurable_backoff_max(self) -> None:
retry = retry.increment(method="GET")
assert retry.get_backoff_time() == max_backoff

retry = retry.increment(method="GET")
assert retry.get_backoff_time() == max_backoff

def test_zero_backoff(self) -> None:
retry = Retry()
assert retry.get_backoff_time() == 0
Expand Down

0 comments on commit 2c156a4

Please sign in to comment.