diff options
author | Oran Agra <oran@redislabs.com> | 2020-04-28 09:18:01 +0300 |
---|---|---|
committer | Oran Agra <oran@redislabs.com> | 2020-04-28 09:18:01 +0300 |
commit | d31c0c52643d627a0dc06664eac0e890ea7aa24e (patch) | |
tree | b99e831939b2a18c971a6869212fb18efeee20ae /tests/integration/psync2-reg.tcl | |
parent | 31781e97b6ae052a12bbe7218ec2a6c030d708c8 (diff) | |
download | redis-d31c0c52643d627a0dc06664eac0e890ea7aa24e.tar.gz |
fix loading race in psync2 tests
Diffstat (limited to 'tests/integration/psync2-reg.tcl')
-rw-r--r-- | tests/integration/psync2-reg.tcl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/integration/psync2-reg.tcl b/tests/integration/psync2-reg.tcl index b5ad021e2..71a1c0eb2 100644 --- a/tests/integration/psync2-reg.tcl +++ b/tests/integration/psync2-reg.tcl @@ -28,7 +28,10 @@ start_server {} { $R(2) slaveof $R_host(0) $R_port(0) $R(0) set foo bar wait_for_condition 50 1000 { - [$R(1) dbsize] == 1 && [$R(2) dbsize] == 1 + [status $R(1) master_link_status] == "up" && + [status $R(2) master_link_status] == "up" && + [$R(1) dbsize] == 1 && + [$R(2) dbsize] == 1 } else { fail "Replicas not replicating from master" } |