summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-07-25 16:17:13 +0200
committerantirez <antirez@gmail.com>2014-07-28 14:55:10 +0200
commit582d8c0c6611a46c2a534b73a702b1850bf976df (patch)
tree23a48a6aa6ad1af2a3e344440d180866efaff020
parentf54162074eca218331ff9c1de7802721e1e0fe3f (diff)
downloadredis-582d8c0c6611a46c2a534b73a702b1850bf976df.tar.gz
Cluster test: node reachability condition fixed.
-rw-r--r--tests/cluster/tests/includes/init-tests.tcl3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/cluster/tests/includes/init-tests.tcl b/tests/cluster/tests/includes/init-tests.tcl
index 722aed9ec..65fc806e1 100644
--- a/tests/cluster/tests/includes/init-tests.tcl
+++ b/tests/cluster/tests/includes/init-tests.tcl
@@ -16,7 +16,8 @@ test "Cluster nodes are reachable" {
foreach_redis_id id {
# Every node should be reachable.
wait_for_condition 1000 50 {
- [R $id ping] eq {PONG}
+ ([catch {R $id ping} ping_reply] == 0) &&
+ ($ping_reply eq {PONG})
} else {
catch {R $id ping} err
fail "Node #$id keeps replying '$err' to PING."