aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAnton Shestakov <av6@dwimlabs.net>2016-07-09 17:30:56 +0800
committerAnton Shestakov <av6@dwimlabs.net>2016-07-09 17:30:56 +0800
commitb1cda685448c51b911ea5f6b9c7714088dd38ef0 (patch)
tree672e9de232207897a30902e108ee0af4982a78af /tests
parent7a73da002f1103255298713d97365ae16452ac28 (diff)
downloadprosody-b1cda685448c51b911ea5f6b9c7714088dd38ef0.tar.gz
prosody-b1cda685448c51b911ea5f6b9c7714088dd38ef0.zip
test_util_cache: rename a variable (c is already defined) [luacheck]
Diffstat (limited to 'tests')
-rw-r--r--tests/test_util_cache.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_util_cache.lua b/tests/test_util_cache.lua
index dea1bf4c..cbc60bc7 100644
--- a/tests/test_util_cache.lua
+++ b/tests/test_util_cache.lua
@@ -196,12 +196,12 @@ function new(new)
assert_equal(i, 4);
local evicted_key, evicted_value;
- local c = new(3, function (_key, _value)
+ local c2 = new(3, function (_key, _value)
evicted_key, evicted_value = _key, _value;
end);
local function set(k, v, should_evict_key, should_evict_value)
evicted_key, evicted_value = nil, nil;
- c:set(k, v);
+ c2:set(k, v);
assert_equal(evicted_key, should_evict_key);
assert_equal(evicted_value, should_evict_value);
end