array set payload {}
for {set j 0} {$j < 100} {incr j} {
set size [expr 1+[randomInt 100000]]
- set buf [string repeat "abcd" $size]
+ set buf [string repeat "pl-$j" $size]
set payload($j) $buf
$r set bigpayload_$j $buf
}
set index [randomInt 100]
set buf [$r get bigpayload_$index]
if {$buf != $payload($index)} {
- set err "Values differ: I set '$buf' but I read back '$buf2'"
+ set err "Values differ: I set '$payload($index)' but I read back '$buf'"
break
}
}
set _ $err
} {}
- test {DBSIZE should be 10001 now} {
+ test {DBSIZE should be 10101 now} {
$r dbsize
- } {10001}
+ } {10101}
test {INCR against non existing key} {
set res {}