mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
chore: replace fixture loop with event_loop
This commit is contained in:
parent
8a77939d5b
commit
54bd29c805
1 changed files with 2 additions and 2 deletions
|
|
@ -13,9 +13,9 @@ from tests.mocked_bot import MockedBot
|
|||
|
||||
|
||||
class TestChatActionSender:
|
||||
async def test_wait(self, bot: Bot, loop: asyncio.BaseEventLoop):
|
||||
async def test_wait(self, bot: Bot, event_loop: asyncio.BaseEventLoop):
|
||||
sender = ChatActionSender.typing(bot=bot, chat_id=42)
|
||||
loop.call_soon(sender._close_event.set)
|
||||
event_loop.call_soon(sender._close_event.set)
|
||||
start = time.monotonic()
|
||||
await sender._wait(1)
|
||||
assert time.monotonic() - start < 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue