From 2b08505fedaaaef04ad66c50cec5af23780c3edc Mon Sep 17 00:00:00 2001 From: John Sully Date: Mon, 1 Jun 2020 16:01:26 -0400 Subject: [PATCH] PSYNC test reliability improvements (test only issue) Former-commit-id: 50fd4fa7e62f3996f15f6a8c4dcd892022f111ec --- tests/integration/psync2.tcl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/integration/psync2.tcl b/tests/integration/psync2.tcl index daa9f8666..df4edf7af 100644 --- a/tests/integration/psync2.tcl +++ b/tests/integration/psync2.tcl @@ -25,10 +25,12 @@ proc show_cluster_status {} { array set log {} for {set j 0} {$j < 5} {incr j} { set fd [open $R_log($j)] - while {[gets $fd l] >= 0} { + set found 0 + while {[gets $fd l] >= 0 || !$found} { if {[regexp $log_regexp $l] && [regexp -nocase $repl_regexp $l]} { lappend log($j) $l + set found 1 } } close $fd