Fix macos-latest-pypy3.11 test test_aiohtt_server.py

This commit is contained in:
andrew000 2025-10-09 21:51:39 +03:00
parent 22257dfd49
commit a6ca777ee2

View file

@ -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