From b8f368acf3f573795308a2f091ea101582a52554 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 6 Dec 2020 18:41:21 +0100 Subject: [PATCH] Integration tests: parallelize client connects --- slixmpp/test/integration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/slixmpp/test/integration.py b/slixmpp/test/integration.py index d15019cc..758ad239 100644 --- a/slixmpp/test/integration.py +++ b/slixmpp/test/integration.py @@ -53,7 +53,8 @@ class SlixIntegration(IsolatedAsyncioTestCase): """Connect all clients""" for client in self.clients: client.connect() - await client.wait_until('session_start') + wait = [client.wait_until('session_start') for client in self.clients] + await asyncio.gather(*wait) async def _destroy(self): """Kill all clients"""