diff --git a/tests/test_async.py b/tests/test_async.py index fe257e2..20de2be 100644 --- a/tests/test_async.py +++ b/tests/test_async.py @@ -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") diff --git a/tests/test_sync.py b/tests/test_sync.py index de6e976..d63348c 100644 --- a/tests/test_sync.py +++ b/tests/test_sync.py @@ -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")