mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Increase test size for migrating large values
Previously, the old test ran 5,000 loops and used about 500k. With quicklist, storing those same 5,000 loops takes up 24k, so the "large value check" failed! This increases the test to 20,000 loops which makes the object dump 96k.
This commit is contained in:
parent
101b3a6e42
commit
e0d94a7b01
@ -157,7 +157,7 @@ start_server {tags {"dump"}} {
|
|||||||
test {MIGRATE can correctly transfer large values} {
|
test {MIGRATE can correctly transfer large values} {
|
||||||
set first [srv 0 client]
|
set first [srv 0 client]
|
||||||
r del key
|
r del key
|
||||||
for {set j 0} {$j < 5000} {incr j} {
|
for {set j 0} {$j < 40000} {incr j} {
|
||||||
r rpush key 1 2 3 4 5 6 7 8 9 10
|
r rpush key 1 2 3 4 5 6 7 8 9 10
|
||||||
r rpush key "item 1" "item 2" "item 3" "item 4" "item 5" \
|
r rpush key "item 1" "item 2" "item 3" "item 4" "item 5" \
|
||||||
"item 6" "item 7" "item 8" "item 9" "item 10"
|
"item 6" "item 7" "item 8" "item 9" "item 10"
|
||||||
@ -175,7 +175,7 @@ start_server {tags {"dump"}} {
|
|||||||
assert {[$first exists key] == 0}
|
assert {[$first exists key] == 0}
|
||||||
assert {[$second exists key] == 1}
|
assert {[$second exists key] == 1}
|
||||||
assert {[$second ttl key] == -1}
|
assert {[$second ttl key] == -1}
|
||||||
assert {[$second llen key] == 5000*20}
|
assert {[$second llen key] == 40000*20}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user