Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
zzstoatzz committed Dec 11, 2024
1 parent 96570cc commit 6ce6969
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/_internal/test_retries.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ async def fail_func():
with pytest.raises(ValueError, match="Test error"), caplog.at_level("WARNING"):
await fail_func()

assert (
"Attempt 1 of function 'fail_func' failed with ValueError. Retrying in"
in caplog.text
assert all(
substr in caplog.text
for substr in ["Attempt 1 of function", "Test error", "Retrying in"]
)
assert "'fail_func' failed after 2 attempts" in caplog.text
assert mock_sleep.call_count == 1
Expand Down

0 comments on commit 6ce6969

Please sign in to comment.