aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAnton Shestakov <av6@dwimlabs.net>2016-07-09 00:53:46 +0800
committerAnton Shestakov <av6@dwimlabs.net>2016-07-09 00:53:46 +0800
commit1507e8b4983b9c698cfa67131005a5a9d9c533f6 (patch)
tree6c21cb68c08001c8690446ea24acadbe975c587a /tests
parent885648c042398d76f44683d1462084cbfca63940 (diff)
downloadprosody-1507e8b4983b9c698cfa67131005a5a9d9c533f6.tar.gz
prosody-1507e8b4983b9c698cfa67131005a5a9d9c533f6.zip
test_util_multitable: make mt variable local [luacheck]
Diffstat (limited to 'tests')
-rw-r--r--tests/test_util_multitable.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_util_multitable.lua b/tests/test_util_multitable.lua
index 71a83450..4a8dd14c 100644
--- a/tests/test_util_multitable.lua
+++ b/tests/test_util_multitable.lua
@@ -8,7 +8,7 @@
function new(new, multitable)
- mt = new();
+ local mt = new();
assert_table(mt, "Multitable is a table");
assert_function(mt.add, "Multitable has method add");
assert_function(mt.get, "Multitable has method get");
@@ -40,7 +40,7 @@ function get(get, multitable)
return assert_equal(select(2, has_items(list, ...)), "has-all", message or "List has all expected items, and no more", 2);
end
- mt = multitable.new();
+ local mt = multitable.new();
local trigger1, trigger2, trigger3 = {}, {}, {};
local item1, item2, item3 = {}, {}, {};