diff options
author | antirez <antirez@gmail.com> | 2016-11-29 10:27:53 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2016-11-29 10:27:53 +0100 |
commit | 93c5198c1780cf55199653591458e39342b21c5d (patch) | |
tree | 0f562564eab0ce666ec3c4f87b8e1800e6b6535f /tests/integration | |
parent | f6e42f0e3f709706d6587573bcc3a05ec900569f (diff) | |
download | redis-93c5198c1780cf55199653591458e39342b21c5d.tar.gz |
PSYNC2 test: 20 seconds are enough...
Diffstat (limited to 'tests/integration')
-rw-r--r-- | tests/integration/psync2.tcl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/integration/psync2.tcl b/tests/integration/psync2.tcl index c6bcc0074..1c0403fb0 100644 --- a/tests/integration/psync2.tcl +++ b/tests/integration/psync2.tcl @@ -12,7 +12,7 @@ start_server {} { set no_exit 0; ; # Do not exit at end of the test - set duration 60 ; # Total test seconds + set duration 20 ; # Total test seconds set genload 1 ; # Load master with writes at every cycle @@ -31,7 +31,11 @@ start_server {} { if {$debug_msg} {puts "Log file: [srv [expr 0-$j] stdout]"} } + set cycle 1 while {([clock seconds]-$start_time) < $duration} { + test "PSYNC2: --- CYCLE $cycle ---" { + incr cycle + } # Create a random replication layout. # Start with switching master (this simulates a failover). |