Skip to content

Commit a577434

Browse files
tests: fix call options
`{fullscan = true}` option was supposed to be passed to request options instead of net.box ones. Starting from Tarantool 2.10.1, net.box checks its options and throws error if illegal parameter is passed [1]. 1. tarantool/tarantool@d7da59b
1 parent d053623 commit a577434

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/integration/count_test.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ pgroup.test_composite_index = function(g)
766766
}
767767

768768
-- no after
769-
local result, err = g.cluster.main_server.net_box:call('crud.count', {'customers', conditions}, {fullscan = true})
769+
local result, err = g.cluster.main_server.net_box:call('crud.count', {'customers', conditions, {fullscan = true}})
770770

771771
t.assert_equals(err, nil)
772772
t.assert_equals(result, 4)

test/integration/select_test.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ pgroup.test_ge_condition_with_index = function(g)
789789
}
790790

791791
-- no after
792-
local result, err = g.cluster.main_server.net_box:call('crud.select', {'customers', conditions}, {fullscan = true})
792+
local result, err = g.cluster.main_server.net_box:call('crud.select', {'customers', conditions, {fullscan = true}})
793793

794794
t.assert_equals(err, nil)
795795
local objects = crud.unflatten_rows(result.rows, result.metadata)
@@ -829,7 +829,7 @@ pgroup.test_le_condition_with_index = function(g)
829829
}
830830

831831
-- no after
832-
local result, err = g.cluster.main_server.net_box:call('crud.select', {'customers', conditions}, {fullscan = true})
832+
local result, err = g.cluster.main_server.net_box:call('crud.select', {'customers', conditions, {fullscan = true}})
833833

834834
t.assert_equals(err, nil)
835835
local objects = crud.unflatten_rows(result.rows, result.metadata)
@@ -962,7 +962,7 @@ pgroup.test_composite_index = function(g)
962962
}
963963

964964
-- no after
965-
local result, err = g.cluster.main_server.net_box:call('crud.select', {'customers', conditions}, {fullscan = true})
965+
local result, err = g.cluster.main_server.net_box:call('crud.select', {'customers', conditions, {fullscan = true}})
966966

967967
t.assert_equals(err, nil)
968968
local objects = crud.unflatten_rows(result.rows, result.metadata)

0 commit comments

Comments
 (0)