From 7e5be50cbf8a03d3bd2e45d72f0e6b1d7c31bf06 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 25 Jun 2013 15:13:14 +0200 Subject: [PATCH] Test: replication-3 test speedup in master-slave setup. --- tests/integration/replication-3.tcl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/integration/replication-3.tcl b/tests/integration/replication-3.tcl index e660bf4e..57ed77c1 100644 --- a/tests/integration/replication-3.tcl +++ b/tests/integration/replication-3.tcl @@ -2,9 +2,12 @@ start_server {tags {"repl"}} { start_server {} { test {First server should have role slave after SLAVEOF} { r -1 slaveof [srv 0 host] [srv 0 port] - after 1000 - s -1 role - } {slave} + wait_for_condition 50 100 { + [s -1 master_link_status] eq {up} + } else { + fail "Replication not started." + } + } if {$::accurate} {set numops 50000} else {set numops 5000}