Fix Redis Test (#5302)

This commit is contained in:
Simon Mo
2019-07-30 00:22:16 -07:00
committed by Robert Nishihara
parent b3bcf59148
commit 196495a4de
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ class TestRedisPassword(object):
# Check that Redis connections require a password
redis_client = redis.StrictRedis(
host=redis_ip, port=redis_port, password=None)
with pytest.raises(redis.ResponseError):
with pytest.raises(redis.exceptions.AuthenticationError):
redis_client.ping()
# Check that we can connect to Redis using the provided password