mirror of
https://github.com/fluencelabs/redis
synced 2025-04-14 13:16:03 +00:00
Cluster test: catch FLUSHALL errors on node reset.
FLUSHALL will fail on read-only slaves, but there the command is not needed in order to reset the instance with CLUSTER RESET so errors can be ignored.
This commit is contained in:
parent
69fa133ec2
commit
3495caf4fb
@ -21,7 +21,7 @@ test "Cluster nodes are reachable" {
|
|||||||
|
|
||||||
test "Cluster nodes hard reset" {
|
test "Cluster nodes hard reset" {
|
||||||
foreach_redis_id id {
|
foreach_redis_id id {
|
||||||
R $id flushall
|
catch {R $id flushall} ; # May fail for readonly slaves.
|
||||||
R $id cluster reset hard
|
R $id cluster reset hard
|
||||||
R $id config set cluster-node-timeout 3000
|
R $id config set cluster-node-timeout 3000
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user