summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2018-11-01 07:15:09 -0700
committerAndy McCurdy <andy@andymccurdy.com>2018-11-01 07:15:09 -0700
commite1b13b3b5366a422b182bbb7ff2b30d479740a96 (patch)
tree2b40692a607fd4ed2b4a562dbefc82ce4b6c471f
parentc7dbaa142917faaf6075ad8baec9f10b3731794d (diff)
downloadredis-py-e1b13b3b5366a422b182bbb7ff2b30d479740a96.tar.gz
fix test that breaks if other clients are connected to the redis server
-rw-r--r--tests/test_commands.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py
index 3f6c5b1..22aafd3 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -78,11 +78,10 @@ class TestRedisCommands(object):
@skip_if_server_version_lt('2.6.9')
def test_client_list_after_client_setname(self, r):
- r.client_setname('cl=i=ent')
+ r.client_setname('redis_py_test')
clients = r.client_list()
- assert isinstance(clients[0], dict)
- assert 'name' in clients[0]
- assert clients[0]['name'] == 'cl=i=ent'
+ # we don't know which client ours will be
+ assert 'redis_py_test' in [c['name'] for c in clients]
def test_config_get(self, r):
data = r.config_get()