Skip to content

Commit e75f282

Browse files
fix: correct mock Redis client close method name
1 parent 2a8ef6c commit e75f282

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_cache_comprehensive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,7 @@ async def test_l1_cache_full_lifecycle(self):
11171117
mock_redis.exists = AsyncMock(return_value=True)
11181118
mock_redis.ttl = AsyncMock(return_value=60)
11191119
mock_redis.info = AsyncMock(return_value={"keyspace_hits": 100, "keyspace_misses": 10})
1120-
mock_redis.aclose = AsyncMock()
1120+
mock_redis.close = AsyncMock()
11211121

11221122
with patch("redis.asyncio.Redis", return_value=mock_redis):
11231123
await cache.initialize()

0 commit comments

Comments
 (0)