Skip to content

Commit

Permalink
test: fix AsyncRedis.close() deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Sep 27, 2023
1 parent de5edc6 commit 7519520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,6 @@ async def redis_client(docker_ip: str, redis_service: None) -> AsyncGenerator[As
client: AsyncRedis = AsyncRedis(host=docker_ip, port=6397)
yield client
try:
await client.close()
await client.aclose()
except RuntimeError:
pass

0 comments on commit 7519520

Please sign in to comment.