Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tests/unit/cluster/slave-selection.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ test "Cluster should eventually be up again" {

test "Node #10 should eventually replicate node #5" {
set port5 [srv -5 port]
wait_for_condition 1000 50 {
# Valgrind runs are significantly slower and occasionally need more time
# for the cluster to propagate the new primary. Use a larger timeout to
# avoid spurious failures in slow environments.
wait_for_condition 2000 50 {
([lindex [R 10 role] 2] == $port5) &&
([lindex [R 10 role] 3] eq {connected})
} else {
Expand Down
Loading