diff options
author | antirez <antirez@gmail.com> | 2018-07-31 17:28:30 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2018-07-31 17:30:12 +0200 |
commit | 7a30be123794ffb339a3a73e094d255a065b6a60 (patch) | |
tree | 9255abe58819b94dfc0ae88901637f90533bca69 /tests/integration/psync2.tcl | |
parent | 7b41701eb83b13e5cc2dffef8e06b68df49ea391 (diff) | |
download | redis-7a30be123794ffb339a3a73e094d255a065b6a60.tar.gz |
Minor improvements to PR #5187.
Diffstat (limited to 'tests/integration/psync2.tcl')
-rw-r--r-- | tests/integration/psync2.tcl | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/integration/psync2.tcl b/tests/integration/psync2.tcl index 3d9e5527a..b76f36363 100644 --- a/tests/integration/psync2.tcl +++ b/tests/integration/psync2.tcl @@ -33,9 +33,8 @@ start_server {} { set cycle 1 while {([clock seconds]-$start_time) < $duration} { - test "PSYNC2: --- CYCLE $cycle ---" { - incr cycle - } + test "PSYNC2: --- CYCLE $cycle ---" {} + incr cycle # Create a random replication layout. # Start with switching master (this simulates a failover). @@ -139,6 +138,11 @@ start_server {} { } assert {$sum == 4} } + + # Limit anyway the maximum number of cycles. This is useful when the + # test is skipped via --only option of the test suite. In that case + # we don't want to see many seconds of this test being just skipped. + if {$cycle > 50} break } test "PSYNC2: Bring the master back again for next test" { |