Integration tests: parallelize client connects
This commit is contained in:
parent
bcd8cf085f
commit
b8f368acf3
@ -53,7 +53,8 @@ class SlixIntegration(IsolatedAsyncioTestCase):
|
|||||||
"""Connect all clients"""
|
"""Connect all clients"""
|
||||||
for client in self.clients:
|
for client in self.clients:
|
||||||
client.connect()
|
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):
|
async def _destroy(self):
|
||||||
"""Kill all clients"""
|
"""Kill all clients"""
|
||||||
|
Loading…
Reference in New Issue
Block a user