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

sergeyb at tarantool.org sergeyb at tarantool.org
Thu Jul 16 17:11:44 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       | 12 +++++++++++-
 test/swim/box.lua |  4 ++--
 2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/.luacheckrc b/.luacheckrc
index 237b9e456..fd0c5c54a 100644
--- a/.luacheckrc
+++ b/.luacheckrc
@@ -45,7 +45,7 @@ exclude_files = {
     "test/engine_long/*.test.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",
@@ -235,3 +235,13 @@ files["test/sql-tap/*.lua"] = {
 files["test/sql-tap/lua/sqltester.lua"] = {
     globals = {"table_match_regex_p"}
 }
+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.26.2



More information about the Tarantool-patches mailing list