From 063672dbdb8026c01be4b746ff009c4d1457c456 Mon Sep 17 00:00:00 2001 From: John Date: Mon, 11 May 2020 09:37:42 +0000 Subject: [PATCH] more reliability fixes for multimaster Former-commit-id: 3543a3c763de91a4d76bca89659fec9bf6b7a1c8 --- tests/integration/replication-multimaster.tcl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/integration/replication-multimaster.tcl b/tests/integration/replication-multimaster.tcl index 63ff51e60..ff7cebac5 100644 --- a/tests/integration/replication-multimaster.tcl +++ b/tests/integration/replication-multimaster.tcl @@ -36,8 +36,13 @@ start_server {overrides {hz 500 active-replica yes multi-master yes}} { test "$topology replicates to all nodes" { $R(0) set testkey foo after 500 - assert_equal foo [$R(1) get testkey] "replicates to 1" - assert_equal foo [$R(2) get testkey] "replicates to 2" + for {set n 0} {$n < 4} {incr n} { + wait_for_condition 50 1000 { + [$R($n) get testkey] == "foo" + } else { + fail "Failed to replicate to $n" + } + } } test "$topology replicates only once" {