fix flaky replication test (#13945)

from the master's perspective, the replica can become online before it's
actually done loading the rdb file.
this was always like that, in disk-based repl, and thus ok with diskless
and rdb channel.
in this test, because all the keys are added before the backlog is
created, the replication offset is 0, so the test proceeds and could get
a LOADING error when trying to run the function.
This commit is contained in:
Oran Agra 2025-04-15 17:18:00 +03:00 committed by GitHub
parent d3a0d95dab
commit 725c71b87a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1641,7 +1641,7 @@ start_server {tags {"repl external:skip"}} {
$replica replicaof $master_host $master_port
# Wait until replication is completed
wait_replica_online $master 0 1000 100
wait_for_sync $replica
wait_for_ofs_sync $master $replica
# Sanity check