Skip to content

Commit

Permalink
Harden test.
Browse files Browse the repository at this point in the history
  • Loading branch information
janiversen committed Oct 6, 2023
1 parent b889ec3 commit c22aed4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/sub_transport/test_comm.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ async def test_connected(self, client, server, use_comm_type):
)
async def test_connected_multiple(self, client, server):
"""Test connection and data exchange."""
client.comm_params.reconnect_delay = 0.0
assert await server.transport_listen()
assert await client.transport_connect()
await asyncio.sleep(0.5)
Expand Down Expand Up @@ -174,6 +175,7 @@ async def test_connected_multiple(self, client, server):
assert server2_connected.recv_buffer == test2_data + test_data
client2.transport_close()
server.transport_close()
await asyncio.sleep(0.5)
assert not server.active_connections


Expand Down

0 comments on commit c22aed4

Please sign in to comment.