From 52ca61b388c9a2d5a5efb7cd9c20ac0c3f523f6d Mon Sep 17 00:00:00 2001 From: Oleg A Date: Mon, 18 Sep 2023 14:53:05 +0300 Subject: [PATCH] chore: replace fixture loop with event_loop --- tests/test_utils/test_chat_action.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_utils/test_chat_action.py b/tests/test_utils/test_chat_action.py index d6041c37..b5c0a965 100644 --- a/tests/test_utils/test_chat_action.py +++ b/tests/test_utils/test_chat_action.py @@ -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