mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fix macos-latest-pypy3.11 test test_aiohtt_server.py
This commit is contained in:
parent
22257dfd49
commit
a6ca777ee2
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue