From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.mail.ru (smtp1.mail.ru [94.100.179.111]) (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 B68E6445323 for ; Thu, 16 Jul 2020 17:13:54 +0300 (MSK) From: sergeyb@tarantool.org Date: Thu, 16 Jul 2020 17:11:44 +0300 Message-Id: <0195ad1c8275257c04f08c366c0d79dabf6735ee.1594907318.git.sergeyb@tarantool.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 13/19] 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: 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 | 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