Skip to content

Commit e19ceb7

Browse files
authored
deflake "Hash field TTL and active expiry propagates correctly" (#2856)
Fix a little miss in "Hash field TTL and active expiry propagates correctly through chain replication" test in `hashexpire.tcl`. The test did not wait for the initial sync of the chained replica and thus made the test flakey Signed-off-by: Arad Zilberstein <[email protected]>
1 parent 3c3a196 commit e19ceb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/hashexpire.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4042,7 +4042,7 @@ start_server {tags {"hashexpire external:skip"}} {
40424042

40434043
test {Hash field TTL and active expiry propagates correctly through chain replication} {
40444044
$replica replicaof $primary_host $primary_port
4045-
# Wait for R2 to connect to R1
4045+
# Wait for R1 to connect to Primary
40464046
wait_for_condition 100 100 {
40474047
[info_field [$replica info replication] master_link_status] eq "up"
40484048
} else {
@@ -4052,7 +4052,7 @@ start_server {tags {"hashexpire external:skip"}} {
40524052
$replica_2 replicaof $replica_host $replica_port
40534053
# Wait for R2 to connect to R1
40544054
wait_for_condition 100 100 {
4055-
[info_field [$replica info replication] master_link_status] eq "up"
4055+
[info_field [$replica_2 info replication] master_link_status] eq "up"
40564056
} else {
40574057
fail "Second replica <-> First replica connection not established"
40584058
}

0 commit comments

Comments
 (0)