diff --git a/tests/test_dispatcher/test_dispatcher.py b/tests/test_dispatcher/test_dispatcher.py index 43684bb4..0c3e1f1a 100644 --- a/tests/test_dispatcher/test_dispatcher.py +++ b/tests/test_dispatcher/test_dispatcher.py @@ -705,7 +705,7 @@ class TestDispatcher: # Running this test on PyPy with coverage pytest plugin makes the test run slower # than expected, so we adjust the timeout accordingly. - timeout = 0.5 if sys.implementation.name == "pypy" else 0.3 + timeout = 1 if sys.implementation.name == "pypy" else 0.3 response = await dispatcher.feed_webhook_update(bot, RAW_UPDATE, _timeout=timeout) assert isinstance(response, dict) assert response["method"] == "sendMessage" diff --git a/tests/test_webhook/test_aiohtt_server.py b/tests/test_webhook/test_aiohtt_server.py index f7aa0f4b..285cd9b7 100644 --- a/tests/test_webhook/test_aiohtt_server.py +++ b/tests/test_webhook/test_aiohtt_server.py @@ -118,7 +118,7 @@ class TestSimpleRequestHandler: assert resp.status == 200 # Running this test on PyPy with coverage pytest plugin makes the test run slower # than expected, so we adjust the timeout accordingly. - timeout = 1.5 if sys.implementation.name == "pypy" else 1 + timeout = 2 if sys.implementation.name == "pypy" else 1 await asyncio.wait_for(handler_event.wait(), timeout=timeout) mocked_silent_call_request.assert_awaited() result = await resp.json()