diff options
author | Kristján Valur Jónsson <sweskman@gmail.com> | 2023-05-08 10:11:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-08 13:11:43 +0300 |
commit | c0833f60a1d9ec85c589004aba6b6739e6298248 (patch) | |
tree | 9fbe069b992e8a2ff301ebce4722d22c9e5d8e80 /tests/test_asyncio/test_connection.py | |
parent | 093232d8b4cecaac5d8b15c908bd0f8f73927238 (diff) | |
download | redis-py-c0833f60a1d9ec85c589004aba6b6739e6298248.tar.gz |
Optionally disable disconnects in read_response (#2695)
* Add regression tests and fixes for issue #1128
* Fix tests for resumable read_response to use "disconnect_on_error"
* undo prevision fix attempts in async client and cluster
* re-enable cluster test
* Suggestions from code review
* Add CHANGES
Diffstat (limited to 'tests/test_asyncio/test_connection.py')
-rw-r--r-- | tests/test_asyncio/test_connection.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_asyncio/test_connection.py b/tests/test_asyncio/test_connection.py index e2d77fc..e49dd42 100644 --- a/tests/test_asyncio/test_connection.py +++ b/tests/test_asyncio/test_connection.py @@ -184,7 +184,7 @@ async def test_connection_parse_response_resume(r: redis.Redis): conn._parser._stream = MockStream(message, interrupt_every=2) for i in range(100): try: - response = await conn.read_response() + response = await conn.read_response(disconnect_on_error=False) break except MockStream.TestError: pass |