From 2ed450c3220c903ef1d18a9e261e5187e276ac73 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 10 Jun 2014 15:00:39 +0200 Subject: [PATCH] Cluster test: 02 unit more reliable waiting for slave sync. --- tests/cluster/tests/02-failover.tcl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/cluster/tests/02-failover.tcl b/tests/cluster/tests/02-failover.tcl index 0ccfa7d0..6b2fd09a 100644 --- a/tests/cluster/tests/02-failover.tcl +++ b/tests/cluster/tests/02-failover.tcl @@ -18,6 +18,14 @@ test "Instance #5 is a slave" { assert {[RI 5 role] eq {slave}} } +test "Instance #5 synced with the master" { + wait_for_condition 1000 50 { + [RI 5 master_link_status] eq {up} + } else { + fail "Instance #5 master link status is not up" + } +} + set current_epoch [CI 1 cluster_current_epoch] test "Killing one master node" {