Cluster test: check for state=ok after slot allocation.

This commit is contained in:
antirez 2014-04-30 09:29:03 +02:00
parent 11d9ecb71d
commit 1db45ba58c

View File

@ -84,3 +84,13 @@ test "After the join, every node gets a different config epoch" {
fail "Config epoch conflict resolution is not working."
}
}
test "Nodes should report cluster_state is ok now" {
foreach_redis_id id {
wait_for_condition 1000 50 {
[CI $id cluster_state] eq {ok}
} else {
fail "Cluster node $id cluster_state:[CI $id cluster_state]"
}
}
}