summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2020-12-06 18:41:21 +0100
committermathieui <mathieui@mathieui.net>2020-12-06 18:41:21 +0100
commitb8f368acf3f573795308a2f091ea101582a52554 (patch)
tree5e909ffc217522f2cb4f01df55193fa436ac2b66
parentbcd8cf085f528c602f78cba2c9eb2d784eb993da (diff)
downloadslixmpp-b8f368acf3f573795308a2f091ea101582a52554.tar.gz
slixmpp-b8f368acf3f573795308a2f091ea101582a52554.tar.bz2
slixmpp-b8f368acf3f573795308a2f091ea101582a52554.tar.xz
slixmpp-b8f368acf3f573795308a2f091ea101582a52554.zip
Integration tests: parallelize client connects
-rw-r--r--slixmpp/test/integration.py3
1 files changed, 2 insertions, 1 deletions
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"""