fix test that breaks if other clients are connected to the redis server
@@ -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()
