Commit 628c5641 authored by antirez's avatar antirez
Browse files

Cluster test: init test, be patient during restarts.

parent 0d35b467
......@@ -14,8 +14,13 @@ test "(init) Restart killed instances" {
test "Cluster nodes are reachable" {
foreach_redis_id id {
# Every node should just know itself.
assert {[R $id ping] eq {PONG}}
# Every node should be reachable.
wait_for_condition 1000 50 {
[R $id ping] eq {PONG}
} else {
catch {R $id ping} err
fail "Node #$id keeps replying '$err' to PING."
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment