Integration tests: parallelize client connects

This commit is contained in:
mathieui 2020-12-06 18:41:21 +01:00
parent bcd8cf085f
commit b8f368acf3

View file

@ -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"""