From f6f5fc3ccff7b66229e977dfde5e69f43db308bf Mon Sep 17 00:00:00 2001 From: John Sully Date: Tue, 27 Oct 2020 07:25:43 +0000 Subject: [PATCH] Additional test reliability fixes Former-commit-id: dad5a902d394719ba722e487879fc283ca148786 --- tests/integration/replication-active.tcl | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/integration/replication-active.tcl b/tests/integration/replication-active.tcl index 5515c3c0f..233b513ac 100644 --- a/tests/integration/replication-active.tcl +++ b/tests/integration/replication-active.tcl @@ -78,9 +78,9 @@ start_server {tags {"active-repl"} overrides {active-replica yes}} { $master flushall } - test {Replication of EXPIREMEMBER (set) command (Active)} { + test {Replication of EXPIREMEMBER (set) command (Active)} { $master sadd testkey a b c d - wait_for_condition 50 100 { + wait_for_condition 50 200 { [$master debug digest] eq [$slave debug digest] } else { fail "Failed to replicate set" @@ -274,10 +274,13 @@ start_server {tags {"active-repl"} overrides {active-replica yes}} { wait_for_condition 50 1000 { [string match *active-replica* [r role]] } else { - fail [$slave role] + fail "Replica did not connect" + } + wait_for_condition 50 1000 { + [string match "2" [r dbsize]] + } else { + fail "key did not propogate" } - after 1000 - assert_equal 2 [r dbsize] } } }