Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit 65e3966

Browse files
committed
Fix async test
1 parent f56d31b commit 65e3966

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_backoff_async.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -585,14 +585,14 @@ def lookup_max_tries():
585585
@backoff.on_exception(backoff.constant,
586586
ValueError,
587587
max_tries=lookup_max_tries)
588-
def exceptor():
588+
async def exceptor():
589589
raise ValueError()
590590

591591
with pytest.raises(ValueError):
592-
exceptor()
592+
await exceptor()
593593

594594
with pytest.raises(ValueError):
595-
exceptor()
595+
await exceptor()
596596

597597
assert len(lookups) == 2
598598

0 commit comments

Comments
 (0)