summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-04-30 09:29:03 +0200
committerantirez <antirez@gmail.com>2014-04-30 09:29:03 +0200
commit1db45ba58cf612f9b7857771ffc8c41e8a355f50 (patch)
treea1f9f548d9202f4ab433f56ce073f980e312e40e
parent11d9ecb71d44987d2cb365e90b00fe15434426d7 (diff)
downloadredis-1db45ba58cf612f9b7857771ffc8c41e8a355f50.tar.gz
Cluster test: check for state=ok after slot allocation.
-rw-r--r--tests/cluster/tests/00-base.tcl10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/cluster/tests/00-base.tcl b/tests/cluster/tests/00-base.tcl
index 4777414e7..5097a049b 100644
--- a/tests/cluster/tests/00-base.tcl
+++ b/tests/cluster/tests/00-base.tcl
@@ -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]"
+ }
+ }
+}