the test runs less iterations of slow tests if no --accurate is given.

This commit is contained in:
antirez
2011-07-11 12:15:35 +02:00
parent 524d515f0c
commit 30cf7be60c
4 changed files with 11 additions and 6 deletions

View File

@@ -16,7 +16,8 @@ start_server {
tags {slow} {
test {ziplist implementation: value encoding and backlink} {
for {set j 0} {$j < 100} {incr j} {
if {$::accurate} {set iterations 100} else {set iterations 10}
for {set j 0} {$j < $iterations} {incr j} {
r del l
set l {}
for {set i 0} {$i < 200} {incr i} {
@@ -58,7 +59,7 @@ start_server {
}
}
assert_equal [llength $l] [r llen l]
for {set i 0} {$i < 200} {incr i} {
for {set i 0} {$i < $len} {incr i} {
if {[lindex $l $i] ne [r lindex l $i]} {
assert_equal [lindex $l $i] [r lindex l $i]
}

View File

@@ -527,7 +527,7 @@ start_server {tags {"zset"}} {
} elseif {$encoding == "skiplist"} {
r config set zset-max-ziplist-entries 0
r config set zset-max-ziplist-value 0
set elements 1000
if {$::accurate} {set elements 1000} else {set elements 100}
} else {
puts "Unknown sorted set encoding"
exit