Skip to content

Commit

Permalink
fix async connection mock
Browse files Browse the repository at this point in the history
  • Loading branch information
dvora-h committed Jan 7, 2024
1 parent 583ac94 commit a2317ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_asyncio/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def _gen_cluster_mock_resp(r, response):
connection = mock.AsyncMock(spec=Connection)
connection.retry = Retry(NoBackoff(), 0)
connection.read_response.return_value = response
connection.read_response.return_value = response
connection._get_from_local_cache.return_value = None
with mock.patch.object(r, "connection", connection):
yield r

Expand Down

0 comments on commit a2317ab

Please sign in to comment.