summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Stancliff <matt@genges.com>2014-12-10 16:08:54 -0500
committerMatt Stancliff <matt@genges.com>2014-12-23 09:31:05 -0500
commitc865809ca7d9f74d273be5eec3a60b0cd60d63d5 (patch)
tree4ce373bc56d07676f8db4c9e1ceb225209e08afe
parent8919e15341a3b73d4562411d86ed9db08cfc1f55 (diff)
downloadredis-c865809ca7d9f74d273be5eec3a60b0cd60d63d5.tar.gz
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.
-rw-r--r--tests/unit/dump.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/dump.tcl b/tests/unit/dump.tcl
index d39204f9f..5af53db8d 100644
--- a/tests/unit/dump.tcl
+++ b/tests/unit/dump.tcl
@@ -157,7 +157,7 @@ start_server {tags {"dump"}} {
test {MIGRATE can correctly transfer large values} {
set first [srv 0 client]
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 "item 1" "item 2" "item 3" "item 4" "item 5" \
"item 6" "item 7" "item 8" "item 9" "item 10"
@@ -175,7 +175,7 @@ start_server {tags {"dump"}} {
assert {[$first exists key] == 0}
assert {[$second exists key] == 1}
assert {[$second ttl key] == -1}
- assert {[$second llen key] == 5000*20}
+ assert {[$second llen key] == 40000*20}
}
}