[Tarantool-patches] [PATCH v6 19/25] Fix luacheck warnings in test/swim

sergeyb at tarantool.org sergeyb at tarantool.org
Fri May 29 18:09:30 MSK 2020


From: Sergey Bronnikov <sergeyb at tarantool.org>

Part of #4681

Reviewed-by: Vladislav Shpilevoy <v.shpilevoy at tarantool.org>
Reviewed-by: Igor Munkin <imun at tarantool.org>

Co-authored-by: Vladislav Shpilevoy <v.shpilevoy at tarantool.org>
Co-authored-by: Igor Munkin <imun at tarantool.org>
---
 .luacheckrc       | 3 ++-
 test/swim/box.lua | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/.luacheckrc b/.luacheckrc
index 36bdb56cd..196ec82d7 100644
--- a/.luacheckrc
+++ b/.luacheckrc
@@ -13,7 +13,7 @@ exclude_files = {
     "test/long_run-py/**/*.lua",
     "test/replication/*.test.lua",
     "test/sql/*.test.lua",
-    "test/swim/*.lua",
+    "test/swim/*.test.lua",
     "test/var/**/*.lua",
     "test/vinyl/*.lua",
     "test/wal_off/*.lua",
@@ -75,3 +75,4 @@ files["test/replication/lua/fast_replica.lua"] = {
 files["test/sql-tap/*.lua"] = {ignore = {"111", "113", "211", "611", "612", "613", "614", "621", "631"}}
 files["test/sql-tap/lua/sqltester.lua"] = {globals = {"table_match_regex_p"}}
 files["test/sql-tap/e_expr.test.lua"] = {ignore = {"512"}}
+files["test/swim/box.lua"] = {globals = {"listen_port", "listen_uri", "uuid", "uri", "swim", "fiber"}}
diff --git a/test/swim/box.lua b/test/swim/box.lua
index a603777e0..41791013b 100644
--- a/test/swim/box.lua
+++ b/test/swim/box.lua
@@ -12,8 +12,8 @@ box.cfg{}
 -- with encryption. Otherwise they can accidentally discover
 -- SWIM instances from other tests.
 --
-enc_key = box.info.uuid
-enc_algo = 'aes128'
+local enc_key = box.info.uuid
+local enc_algo = 'aes128'
 
 --
 -- Wrap swim.new with a codec to prevent test workers affecting
-- 
2.23.0



More information about the Tarantool-patches mailing list