more reliability fixes for multimaster
Former-commit-id: fd5b541260908423c35227ff9e42a83f96ace6c0
This commit is contained in:
parent
0e024808c2
commit
daaf82b673
@ -36,8 +36,13 @@ start_server {overrides {hz 500 active-replica yes multi-master yes}} {
|
|||||||
test "$topology replicates to all nodes" {
|
test "$topology replicates to all nodes" {
|
||||||
$R(0) set testkey foo
|
$R(0) set testkey foo
|
||||||
after 500
|
after 500
|
||||||
assert_equal foo [$R(1) get testkey] "replicates to 1"
|
for {set n 0} {$n < 4} {incr n} {
|
||||||
assert_equal foo [$R(2) get testkey] "replicates to 2"
|
wait_for_condition 50 1000 {
|
||||||
|
[$R($n) get testkey] == "foo"
|
||||||
|
} else {
|
||||||
|
fail "Failed to replicate to $n"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
test "$topology replicates only once" {
|
test "$topology replicates only once" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user