Skip to content

Commit

Permalink
[OneBot] Fix melobot.utils tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aicorein committed Jan 29, 2025
1 parent 52a1e7b commit 40ba781
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,5 +355,8 @@ async def test_async_interval(cls) -> None:
t = async_interval(lambda: cls.abar(obj), 0.1)
await aio.sleep(0.5)
t.cancel()
await t
try:
await t
except asyncio.CancelledError:
pass
assert getattr(obj, cls.TEST_ATTR) >= 3

0 comments on commit 40ba781

Please sign in to comment.