projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9207e71
)
test_util_cache: rename a variable (c is already defined) [luacheck]
author
Anton Shestakov
<av6@dwimlabs.net>
Sat, 9 Jul 2016 09:30:56 +0000
(17:30 +0800)
committer
Anton Shestakov
<av6@dwimlabs.net>
Sat, 9 Jul 2016 09:30:56 +0000
(17:30 +0800)
tests/test_util_cache.lua
patch
|
blob
|
history
diff --git
a/tests/test_util_cache.lua
b/tests/test_util_cache.lua
index dea1bf4c6b92444ac7bea29aba76e81e7a6d5da0..cbc60bc7da7416d9f8945662acd5c2017ef0f096 100644
(file)
--- 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 c
2
= 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);
+ c
2
:set(k, v);
assert_equal(evicted_key, should_evict_key);
assert_equal(evicted_value, should_evict_value);
end