mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 23:31:03 +00:00
Cluster test: init test, be patient during restarts.
This commit is contained in:
parent
0d35b46761
commit
628c5641c0
@ -14,8 +14,13 @@ test "(init) Restart killed instances" {
|
|||||||
|
|
||||||
test "Cluster nodes are reachable" {
|
test "Cluster nodes are reachable" {
|
||||||
foreach_redis_id id {
|
foreach_redis_id id {
|
||||||
# Every node should just know itself.
|
# Every node should be reachable.
|
||||||
assert {[R $id ping] eq {PONG}}
|
wait_for_condition 1000 50 {
|
||||||
|
[R $id ping] eq {PONG}
|
||||||
|
} else {
|
||||||
|
catch {R $id ping} err
|
||||||
|
fail "Node #$id keeps replying '$err' to PING."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user