From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp39.i.mail.ru (smtp39.i.mail.ru [94.100.177.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 54BB245BE33 for ; Fri, 29 May 2020 18:16:18 +0300 (MSK) From: sergeyb@tarantool.org Date: Fri, 29 May 2020 18:09:30 +0300 Message-Id: <5e0d336c21658e417e82eafd6d2e192002627abe.1590764168.git.sergeyb@tarantool.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v6 19/25] Fix luacheck warnings in test/swim List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org, v.shpilevoy@tarantool.org, imun@tarantool.org Cc: o.piskunov@tarantool.org, alexander.turenko@tarantool.org From: Sergey Bronnikov Part of #4681 Reviewed-by: Vladislav Shpilevoy Reviewed-by: Igor Munkin Co-authored-by: Vladislav Shpilevoy Co-authored-by: Igor Munkin --- .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