Integration tests: parallelize client connects
This commit is contained in:
parent
bcd8cf085f
commit
b8f368acf3
1 changed files with 2 additions and 1 deletions
|
@ -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"""
|
||||
|
|
Loading…
Reference in a new issue