mirror of
https://github.com/wassname/ray.git
synced 2026-07-15 11:25:40 +08:00
Fix Redis Test (#5302)
This commit is contained in:
committed by
Robert Nishihara
parent
b3bcf59148
commit
196495a4de
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user