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 <gmbnomis@gmail.com>
This commit is contained in:
gmbnomis 2024-08-18 15:20:53 +02:00 committed by GitHub
parent 70b9285802
commit 7795152fff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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