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 <[email protected]>
  • Loading branch information
renovate-bot and parthea authored Apr 26, 2022
1 parent beac563 commit c1c7841
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
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 packages/google-cloud-automl/samples/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
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 c1c7841

Please sign in to comment.