From 1db45ba58cf612f9b7857771ffc8c41e8a355f50 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 30 Apr 2014 09:29:03 +0200 Subject: [PATCH] Cluster test: check for state=ok after slot allocation. --- tests/cluster/tests/00-base.tcl | 10 ++++++++++ 1 file changed, 10 insertions(+) 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]" + } + } +}