Skip to content

Commit

Permalink
close connections in test_retry_connect
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Apr 5, 2022
1 parent 2cf6c27 commit 61554fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions distributed/comm/tests/test_comms.py
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@ async def test_retry_connect(tcp, monkeypatch):
async def echo(comm):
message = await comm.read()
await comm.write(message)
await comm.close()

class UnreliableConnector(tcp.TCPConnector):
def __init__(self):
Expand All @@ -922,6 +923,7 @@ class UnreliableBackend(tcp.TCPBackend):
await comm.write(b"test")
msg = await comm.read()
assert msg == b"test"
await comm.close()
finally:
listener.stop()

Expand Down

0 comments on commit 61554fe

Please sign in to comment.