Skip to content

Commit 4ee679d

Browse files
committed
release connections in tests
1 parent 79afa28 commit 4ee679d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/test_asyncio/test_connect.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ async def test_tcp_ssl_connect(tcp_address):
6262
socket_timeout=10,
6363
)
6464
await _assert_connect(conn, tcp_address, certfile=certfile, keyfile=keyfile)
65+
await conn.disconnect()
6566

6667

6768
async def _assert_connect(conn, server_address, certfile=None, keyfile=None):

tests/test_asyncio/test_connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async def test_invalid_response(create_redis):
4040
assert (
4141
str(cm.value) == f'Protocol error, got "{raw.decode()}" as reply type byte'
4242
)
43-
await r.connection.disconnect()
43+
await r.close()
4444

4545

4646
@pytest.mark.onlynoncluster

0 commit comments

Comments
 (0)