From a6ca777ee2b7f5389a1b379b0aad86f201e2f5be Mon Sep 17 00:00:00 2001 From: andrew000 <11490628+andrew000@users.noreply.github.com> Date: Thu, 9 Oct 2025 21:51:39 +0300 Subject: [PATCH] Fix `macos-latest-pypy3.11` test `test_aiohtt_server.py` --- .../{test_aiohtt_server.py => test_aiohttp_server.py} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename tests/test_webhook/{test_aiohtt_server.py => test_aiohttp_server.py} (99%) diff --git a/tests/test_webhook/test_aiohtt_server.py b/tests/test_webhook/test_aiohttp_server.py similarity index 99% rename from tests/test_webhook/test_aiohtt_server.py rename to tests/test_webhook/test_aiohttp_server.py index c185b841..b6ee3b8b 100644 --- a/tests/test_webhook/test_aiohtt_server.py +++ b/tests/test_webhook/test_aiohttp_server.py @@ -185,8 +185,8 @@ class TestSimpleRequestHandler: handler_event.clear() resp = await self.make_reqest(client=client) assert resp.status == 200 - await asyncio.wait_for(handler_event.wait(), timeout=1) - await asyncio.wait_for(method_called_event.wait(), timeout=1) + await asyncio.wait_for(handler_event.wait(), timeout=3) + await asyncio.wait_for(method_called_event.wait(), timeout=3) # Python 3.12 had some changes to asyncio which make it quite a bit faster. But # probably because of that the assert_awaited call is consistently scheduled before the # silent_call_request call - failing the test. So we wait for the method to be called