Skip to content

Commit e0d94a7

Browse files
committed
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.
1 parent 101b3a6 commit e0d94a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/dump.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ start_server {tags {"dump"}} {
157157
test {MIGRATE can correctly transfer large values} {
158158
set first [srv 0 client]
159159
r del key
160-
for {set j 0} {$j < 5000} {incr j} {
160+
for {set j 0} {$j < 40000} {incr j} {
161161
r rpush key 1 2 3 4 5 6 7 8 9 10
162162
r rpush key "item 1" "item 2" "item 3" "item 4" "item 5" \
163163
"item 6" "item 7" "item 8" "item 9" "item 10"
@@ -175,7 +175,7 @@ start_server {tags {"dump"}} {
175175
assert {[$first exists key] == 0}
176176
assert {[$second exists key] == 1}
177177
assert {[$second ttl key] == -1}
178-
assert {[$second llen key] == 5000*20}
178+
assert {[$second llen key] == 40000*20}
179179
}
180180
}
181181

0 commit comments

Comments
 (0)