From 7795152fff06f8200f5e4239ff612b240f638e14 Mon Sep 17 00:00:00 2001 From: gmbnomis Date: Sun, 18 Aug 2024 15:20:53 +0200 Subject: [PATCH] Fix valgrind timing issue failure in replica-redirect test (#917) Wait for the replica to become online before starting the actual test. Signed-off-by: Simon Baatz --- tests/integration/replica-redirect.tcl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/integration/replica-redirect.tcl b/tests/integration/replica-redirect.tcl index 050cf0368c..b62ce4ca3b 100644 --- a/tests/integration/replica-redirect.tcl +++ b/tests/integration/replica-redirect.tcl @@ -1,5 +1,6 @@ start_server {tags {needs:repl external:skip}} { start_server {} { + set primary [srv -1 client] set primary_host [srv -1 host] set primary_port [srv -1 port] set primary_pid [srv -1 pid] @@ -9,11 +10,7 @@ start_server {tags {needs:repl external:skip}} { set replica_pid [srv 0 pid] r replicaof $primary_host $primary_port - wait_for_condition 50 100 { - [s 0 master_link_status] eq {up} - } else { - fail "Replicas not replicating from primary" - } + wait_replica_online $primary test {replica allow read command by default} { r get foo