Skip to content

Commit

Permalink
Remove backoff from RetryingCaller tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Aug 18, 2024
1 parent 40be79d commit 87e92f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ async def f(*args, **kw):

return args, kw

arc = stamina.AsyncRetryingCaller().on(on)
arc = stamina.AsyncRetryingCaller(wait_max=0).on(on)

args, kw = await arc(f, 42, foo="bar")

Expand Down
2 changes: 1 addition & 1 deletion tests/test_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def f(*args, **kw):

return args, kw

bound_rc = stamina.RetryingCaller().on(on)
bound_rc = stamina.RetryingCaller(wait_max=0).on(on)

args, kw = bound_rc(f, 42, foo="bar")

Expand Down

0 comments on commit 87e92f1

Please sign in to comment.