From bfd40c29f03a7cfc0ff5a0d9f46aa842f082868c Mon Sep 17 00:00:00 2001
From: Denis Smirnov <sd@picodata.io>
Date: Tue, 9 Aug 2022 12:36:36 +0700
Subject: [PATCH] fix: lua error in exception integration test

---
 test_app/test/integration/api_test.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test_app/test/integration/api_test.lua b/test_app/test/integration/api_test.lua
index f1a1964717..4165a1f171 100644
--- a/test_app/test/integration/api_test.lua
+++ b/test_app/test/integration/api_test.lua
@@ -634,7 +634,7 @@ end
 g.test_except = function()
     local api = cluster:server("api-1").net_box
 
-    r, err = api:call("query", {
+    local r, err = api:call("query", {
         [[insert into "t" ("id", "a") values (?, ?), (?, ?), (?, ?)]],
         {
             3, 777,
@@ -645,7 +645,7 @@ g.test_except = function()
     t.assert_equals(err, nil)
     t.assert_equals(r, {row_count = 3})
 
-    local r, err = api:call("query", { [[
+    r, err = api:call("query", { [[
         SELECT "a" FROM "t" where "id" <= 3
         EXCEPT
         SELECT "a" FROM "t" where "id" > 3
-- 
GitLab