diff options
author | dvora-h <67596500+dvora-h@users.noreply.github.com> | 2023-03-29 16:50:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-29 16:50:37 +0300 |
commit | 49d9cb751c7c30546fc86d11f8168d7aa007edae (patch) | |
tree | b940ea97748b242c40a6b7c2d2e87cabf4d002d8 /tests/test_asyncio/test_cluster.py | |
parent | b3c89acd0ffe8303649ad8207bc911b1d6a033eb (diff) | |
download | redis-py-49d9cb751c7c30546fc86d11f8168d7aa007edae.tar.gz |
* Fixing cancelled async futures (#2666)
Co-authored-by: James R T <jamestiotio@gmail.com>
Co-authored-by: dvora-h <dvora.heller@redis.com>
* Version 4.4.4
* fix tests
* linters
* fixing the test for the 4.4 state
* remove superfluous try-except
---------
Co-authored-by: Chayim <chayim@users.noreply.github.com>
Co-authored-by: James R T <jamestiotio@gmail.com>
Co-authored-by: Chayim I. Kirshen <c@kirshen.com>
Diffstat (limited to 'tests/test_asyncio/test_cluster.py')
-rw-r--r-- | tests/test_asyncio/test_cluster.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/test_asyncio/test_cluster.py b/tests/test_asyncio/test_cluster.py index 0857c05..13e5e26 100644 --- a/tests/test_asyncio/test_cluster.py +++ b/tests/test_asyncio/test_cluster.py @@ -340,23 +340,6 @@ class TestRedisClusterObj: rc = RedisCluster.from_url("rediss://localhost:16379") assert rc.connection_kwargs["connection_class"] is SSLConnection - async def test_asynckills(self, r) -> None: - - await r.set("foo", "foo") - await r.set("bar", "bar") - - t = asyncio.create_task(r.get("foo")) - await asyncio.sleep(1) - t.cancel() - try: - await t - except asyncio.CancelledError: - pytest.fail("connection is left open with unread response") - - assert await r.get("bar") == b"bar" - assert await r.ping() - assert await r.get("foo") == b"foo" - async def test_max_connections( self, create_redis: Callable[..., RedisCluster] ) -> None: |