aboutsummaryrefslogtreecommitdiffstats
path: root/spec/util_cache_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/util_cache_spec.lua')
-rw-r--r--spec/util_cache_spec.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/util_cache_spec.lua b/spec/util_cache_spec.lua
index d4e609ed..ae7b1936 100644
--- a/spec/util_cache_spec.lua
+++ b/spec/util_cache_spec.lua
@@ -390,8 +390,7 @@ describe("util.cache", function()
end);
it("eviction stuff", function ()
- local c;
- c = cache.new(4, function(_k,_v)
+ local c = cache.new(4, function(_k,_v,c)
if c.size < 10 then
c:resize(c.size*2);
end