Skip to content

Commit 3543a3c

Browse files
committed
more reliability fixes for multimaster
1 parent 3122912 commit 3543a3c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/integration/replication-multimaster.tcl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,13 @@ start_server {overrides {hz 500 active-replica yes multi-master yes}} {
3636
test "$topology replicates to all nodes" {
3737
$R(0) set testkey foo
3838
after 500
39-
assert_equal foo [$R(1) get testkey] "replicates to 1"
40-
assert_equal foo [$R(2) get testkey] "replicates to 2"
39+
for {set n 0} {$n < 4} {incr n} {
40+
wait_for_condition 50 1000 {
41+
[$R($n) get testkey] == "foo"
42+
} else {
43+
fail "Failed to replicate to $n"
44+
}
45+
}
4146
}
4247

4348
test "$topology replicates only once" {

0 commit comments

Comments
 (0)