[Tarantool-patches] [PATCH v6 21/25] Fix luacheck warnings in test/wal_off

sergeyb at tarantool.org sergeyb at tarantool.org
Fri May 29 18:09:34 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                           | 2 +-
 test/wal_off/rtree_benchmark.result   | 2 +-
 test/wal_off/rtree_benchmark.test.lua | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.luacheckrc b/.luacheckrc
index 5bb49ec14..a2ac96b68 100644
--- a/.luacheckrc
+++ b/.luacheckrc
@@ -16,7 +16,7 @@ exclude_files = {
     "test/swim/*.test.lua",
     "test/var/**/*.lua",
     "test/vinyl/*.test.lua",
-    "test/wal_off/*.lua",
+    "test/wal_off/*.test.lua",
     "test/xlog/*.lua",
     "test-run/**/*.lua",
     "third_party/**/*.lua",
diff --git a/test/wal_off/rtree_benchmark.result b/test/wal_off/rtree_benchmark.result
index 8e01c9f2a..8deefca82 100644
--- a/test/wal_off/rtree_benchmark.result
+++ b/test/wal_off/rtree_benchmark.result
@@ -163,7 +163,7 @@ for i = 1, 0 do
    for j = 1, dimension do
       table.insert(rect, 180*math.random())
    end
-   for k,v in pairs(s.index.spatial:select(rect, {limit = n_neighbors, iterator = 'NEIGHBOR'})) do
+   for _,_ in pairs(s.index.spatial:select(rect, {limit = n_neighbors, iterator = 'NEIGHBOR'})) do
       n = n + 1
    end
 end;
diff --git a/test/wal_off/rtree_benchmark.test.lua b/test/wal_off/rtree_benchmark.test.lua
index 6fae977c9..6bdc0a758 100644
--- a/test/wal_off/rtree_benchmark.test.lua
+++ b/test/wal_off/rtree_benchmark.test.lua
@@ -96,7 +96,7 @@ for i = 1, 0 do
    for j = 1, dimension do
       table.insert(rect, 180*math.random())
    end
-   for k,v in pairs(s.index.spatial:select(rect, {limit = n_neighbors, iterator = 'NEIGHBOR'})) do
+   for _,_ in pairs(s.index.spatial:select(rect, {limit = n_neighbors, iterator = 'NEIGHBOR'})) do
       n = n + 1
    end
 end;
-- 
2.23.0



More information about the Tarantool-patches mailing list