summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-04-30 09:29:03 +0200
committerantirez <antirez@gmail.com>2014-05-05 09:37:39 +0200
commit4ca7c5bcde86f5a55a211142cbdbc3845b143592 (patch)
tree747a2fe0a12045ea306dd5e98a3719a8e69faed8
parentc4c7389feaa38a4c484f35637f52714ffe520ee6 (diff)
downloadredis-4ca7c5bcde86f5a55a211142cbdbc3845b143592.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]"
+ }
+ }
+}