[PATCH v1] test: enable unix sockets at sql-tap suite
Alexander V. Tikhonov
avtikhon at tarantool.org
Thu Aug 15 07:29:36 MSK 2019
Enable unix sockets for iproto connections in sql-tap suite
and use it at sql-tap/gh-4077-iproto-execute-no-bind test.
Enabled use_unix_sockets_iproto option to use unix sockets,
which provides the new way to handle the problem with
'Address already in use' error. It lets test-run appoint
unix sockets for LISTEN environment variable values.
Check the previous commit for the other suites:
60f84cbfca24e3a91cea067c923e006b44ee589f ('test: use unix sockets for iproto connections')
Follows up #4008
---
Github: https://github.com/tarantool/tarantool/tree/avtikhon/gh-4008-unix_sockets_iproto_sql_tap
Issue: https://github.com/tarantool/tarantool/issues/4008
test/sql-tap/gh-4077-iproto-execute-no-bind.test.lua | 2 +-
test/sql-tap/suite.ini | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/test/sql-tap/gh-4077-iproto-execute-no-bind.test.lua b/test/sql-tap/gh-4077-iproto-execute-no-bind.test.lua
index d4b597e35..d9b93b079 100755
--- a/test/sql-tap/gh-4077-iproto-execute-no-bind.test.lua
+++ b/test/sql-tap/gh-4077-iproto-execute-no-bind.test.lua
@@ -16,7 +16,7 @@ local IPROTO_SCHEMA_VERSION = 0x05
local IPROTO_STATUS_KEY = 0x00
box.cfg({
- listen = os.getenv('LISTEN') or 'localhost:3301',
+ listen = os.getenv('LISTEN') or 'unix/:3301',
})
box.schema.user.grant('guest', 'read,write,execute', 'universe')
diff --git a/test/sql-tap/suite.ini b/test/sql-tap/suite.ini
index 2dfae4442..cba1d1fc6 100644
--- a/test/sql-tap/suite.ini
+++ b/test/sql-tap/suite.ini
@@ -24,6 +24,8 @@ disabled = selectA.test.lua ;
lua_libs = lua/sqltester.lua ../sql/lua/sql_tokenizer.lua ../box/lua/identifier.lua
is_parallel = True
+use_unix_sockets = True
+use_unix_sockets_iproto = True
release_disabled = debug_mode_only.test.lua
long_run = gh-3332-tuple-format-leak.test.lua, gh-3083-ephemeral-unref-tuples.test.lua
config = engine.cfg
--
2.17.1
More information about the Tarantool-patches
mailing list