diff --git a/tests/integration/repl-rdb-channel.tcl b/tests/integration/repl-rdb-channel.tcl index 2dc6fda24f..4e7bd9abd4 100644 --- a/tests/integration/repl-rdb-channel.tcl +++ b/tests/integration/repl-rdb-channel.tcl @@ -370,14 +370,13 @@ start_server {tags {"repl rdb-channel external:skip"}} { test "Test rdb-channel psync established after rdb load" { $replica slaveof $master_host $master_port - wait_for_value_to_propegate_to_replica $master $replica "key1" - verify_replica_online $master 0 500 wait_for_condition 50 1000 { [status $replica master_link_status] == "up" } else { fail "Replica is not synced" } + wait_for_value_to_propegate_to_replica $master $replica "key1" # Confirm the occurrence of a race condition. set res [wait_for_log_messages -1 {"*RDB channel sync - psync established after rdb load*"} $loglines 2000 1] set loglines [lindex $res 1] diff --git a/tests/support/test.tcl b/tests/support/test.tcl index ad53810818..c544af5d5d 100644 --- a/tests/support/test.tcl +++ b/tests/support/test.tcl @@ -161,7 +161,7 @@ proc verify_replica_online {master replica_idx max_retry} { } proc wait_for_value_to_propegate_to_replica {master replica key} { - set val [$master get key] + set val [$master get $key] wait_for_condition 50 1000 { ([$replica get $key] eq $val) } else {