Skip to content

Commit

Permalink
chore(deps): update dependency backoff to v2 (#383)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency backoff to v2

* test: backoff wait_gen arg expects a generator

Co-authored-by: Anthonios Partheniou <partheniou@google.com>
  • Loading branch information
renovate-bot and parthea authored Apr 26, 2022
1 parent 683d2de commit ab40e26
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion automl/snippets/requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
backoff==1.11.1
backoff==2.0.0
pytest==7.1.2
4 changes: 3 additions & 1 deletion automl/tables/predict_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@


@backoff.on_exception(
wait_gen=lambda: iter([50, 150, MAX_TIMEOUT]), exception=Exception, max_tries=3
wait_gen=lambda: (wait_time for wait_time in [50, 150, MAX_TIMEOUT]),
exception=Exception,
max_tries=3,
)
def test_predict(capsys):
inputs = {
Expand Down
2 changes: 1 addition & 1 deletion automl/tables/requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pytest==7.1.2
backoff==1.11.1
backoff==2.0.0

0 comments on commit ab40e26

Please sign in to comment.