diff --git a/test/box/net.box.result b/test/box/net.box.result index 54a5d48f6d7ed475fced2dee106bb739788794e9..7a8e5528f44f0e28a2ae072ed4c38c842fe0b9af 100644 --- a/test/box/net.box.result +++ b/test/box/net.box.result @@ -1009,6 +1009,30 @@ c.space.test.index.covering.parts box.space.test:drop() --- ... +-- CALL vs CALL_16 in connect options +function scalar42() return 42 end +--- +... +c = net.connect(box.cfg.listen) +--- +... +c:call('scalar42') +--- +- 42 +... +c:close() +--- +... +c = net.connect(box.cfg.listen, {call_16 = true}) +--- +... +c:call('scalar42') +--- +- - [42] +... +c:close() +--- +... box.schema.user.revoke('guest', 'read,write,execute', 'universe') --- ... diff --git a/test/box/net.box.test.lua b/test/box/net.box.test.lua index 4c5e393eaa46cff8da6c6d26e18a82c618227509..609012ade84c72fef4efdd1b8a99986737ae3bc1 100644 --- a/test/box/net.box.test.lua +++ b/test/box/net.box.test.lua @@ -403,6 +403,15 @@ c.space.test.index.covering.parts box.space.test:drop() +-- CALL vs CALL_16 in connect options +function scalar42() return 42 end +c = net.connect(box.cfg.listen) +c:call('scalar42') +c:close() +c = net.connect(box.cfg.listen, {call_16 = true}) +c:call('scalar42') +c:close() + box.schema.user.revoke('guest', 'read,write,execute', 'universe') -- Tarantool < 1.7.1 compatibility (gh-1533)