mirror of
https://github.com/fluencelabs/redis
synced 2025-08-01 00:41:56 +00:00
the test runs less iterations of slow tests if no --accurate is given.
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user