Skip to content

Commit a9f6f80

Browse files
committed
fix
1 parent 1fdc788 commit a9f6f80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_asyncio/test_connection_pool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ async def test_do_not_auto_disconnect_redis_created_pool(self, r2: redis.Redis):
5757
assert r2.connection_pool._in_use_connections == {new_conn}
5858
assert new_conn.is_connected
5959
assert len(r2.connection_pool._available_connections) == 1
60-
assert r2.connection_list(pool._available_connections)[0].is_connected
60+
assert list(r2.connection_pool._available_connections)[0].is_connected
6161

6262
async def test_auto_release_override_true_manual_created_pool(self, r: redis.Redis):
6363
assert r.auto_close_connection_pool is True, "This is from the class fixture"
@@ -85,7 +85,7 @@ async def test_negate_auto_close_client_pool(
8585
await r.aclose(close_connection_pool=False)
8686
assert not self.has_no_connected_connections(r.connection_pool)
8787
assert r.connection_pool._in_use_connections == {new_conn}
88-
assert r.connection_list(pool._available_connections)[0].is_connected
88+
assert list(r.connection_pool._available_connections)[0].is_connected
8989
assert self.get_total_connected_connections(r.connection_pool) == 2
9090

9191

0 commit comments

Comments
 (0)