Skip to content

Commit

Permalink
Fix valgrind timing issue failure in replica-redirect test (#917)
Browse files Browse the repository at this point in the history
Wait for the replica to become online before starting the actual test.

Signed-off-by: Simon Baatz <[email protected]>
  • Loading branch information
gmbnomis authored Aug 18, 2024
1 parent 70b9285 commit 7795152
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/integration/replica-redirect.tcl
Original file line number Diff line number Diff line change
@@ -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]
Expand All @@ -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
Expand Down

0 comments on commit 7795152

Please sign in to comment.