Skip to content

Commit

Permalink
Increase timeout for cross-version-replication test (#1644)
Browse files Browse the repository at this point in the history
Fixes #1641

Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
  • Loading branch information
zuiderkwast authored Jan 29, 2025
1 parent d3aabd7 commit 12ec3d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/integration/cross-version-replication.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ start_server {tags {"repl needs:other-server external:skip"} start-other-server
start_server {} {
test "Start replication from $primary_name_and_version" {
r replicaof [srv -1 host] [srv -1 port]
wait_for_sync r
wait_for_sync r 500 100
# The key has been transferred.
assert_equal bar [r get foo]
assert_equal up [s master_link_status]
Expand Down
4 changes: 2 additions & 2 deletions tests/support/util.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ proc waitForBgrewriteaof r {
}
}

proc wait_for_sync r {
wait_for_condition 50 100 {
proc wait_for_sync {r {maxtries 50} {delay 100}} {
wait_for_condition $maxtries $delay {
[status $r master_link_status] eq "up"
} else {
fail "replica didn't sync in time"
Expand Down

0 comments on commit 12ec3d5

Please sign in to comment.