From a7c02b19bfe8ca719995d4f3d940b1f27f7f73b8 Mon Sep 17 00:00:00 2001 From: Oran Agra Date: Mon, 22 Mar 2021 10:50:39 +0200 Subject: Fix race in replication test (#8679) Since redis 6.2, redis immediately tries to connect to the master, not waiting for replication cron. in the slow freebsd CI, this test failed and master_link_status was already "up" when INFO was called. --- tests/integration/replication.tcl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/integration/replication.tcl b/tests/integration/replication.tcl index 8d09c68c1..62b175209 100644 --- a/tests/integration/replication.tcl +++ b/tests/integration/replication.tcl @@ -196,9 +196,11 @@ start_server {tags {"repl"}} { } {master} test {SLAVEOF should start with link status "down"} { + r multi r slaveof [srv -1 host] [srv -1 port] - s master_link_status - } {down} + r info replication + r exec + } {*master_link_status:down*} test {The role should immediately be changed to "replica"} { s role -- cgit v1.2.1