From d52173643a3232e13d0ca063dd0339022006c9dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Fri, 3 Nov 2023 08:46:44 +0100 Subject: [PATCH] test: limit aiohttp parallelism MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Fernández Rojas --- examples/select-installation-group.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/select-installation-group.py b/examples/select-installation-group.py index c347357..c8e5816 100644 --- a/examples/select-installation-group.py +++ b/examples/select-installation-group.py @@ -13,7 +13,8 @@ async def main(): """Basic Airzone client example.""" - async with aiohttp.ClientSession() as aiohttp_session: + connector = aiohttp.TCPConnector(limit=4) + async with aiohttp.ClientSession(connector=connector) as aiohttp_session: client = AirzoneCloudApi(aiohttp_session, _secrets.AIRZONE_OPTIONS) try: