Skip to content
Snippets Groups Projects
Commit 499634d5 authored by Nick Zavaritsky's avatar Nick Zavaritsky Committed by Roman Tsisyk
Browse files

Add test for call_16 net.box connect opt

parent 7665e45a
No related branches found
No related tags found
No related merge requests found
......@@ -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')
---
...
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment