summaryrefslogtreecommitdiff
path: root/tests/test_connection_pool.py
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2019-06-01 08:38:01 -0700
committerAndy McCurdy <andy@andymccurdy.com>2019-07-09 17:03:36 -0700
commitacac4db0c064d2618d75f27a58384c97c16458fd (patch)
treed06bbe03bb758c3cc443128d6046118146979240 /tests/test_connection_pool.py
parent9ed2132af28652e964b6a4a20d387580d1081003 (diff)
downloadredis-py-acac4db0c064d2618d75f27a58384c97c16458fd.tar.gz
Use nonblocking sockets instead of selectors for healthy connections
This replaces the work in 3.2.0 to use nonblocking sockets instead of selectors. Selectors proved to be problematic for some environments including eventlet and gevent. Nonblocking sockets should be available in all environments.
Diffstat (limited to 'tests/test_connection_pool.py')
-rw-r--r--tests/test_connection_pool.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_connection_pool.py b/tests/test_connection_pool.py
index f258411..2aea1e4 100644
--- a/tests/test_connection_pool.py
+++ b/tests/test_connection_pool.py
@@ -19,8 +19,8 @@ class DummyConnection(object):
def connect(self):
pass
- def is_ready_for_command(self):
- return True
+ def can_read(self):
+ return False
class TestConnectionPool(object):