Skip to content
Snippets Groups Projects
Commit 832f2019 authored by Roman Tsisyk's avatar Roman Tsisyk
Browse files

Fix tests

parent bcb4e3f8
No related branches found
No related tags found
No related merge requests found
...@@ -891,7 +891,7 @@ space.index['primary']:pairs({}, {iterator = -666 }) ...@@ -891,7 +891,7 @@ space.index['primary']:pairs({}, {iterator = -666 })
-- Test cases for #123: box.index.count does not check arguments properly -- Test cases for #123: box.index.count does not check arguments properly
space.index['primary']:pairs(function() end, { iterator = box.index.EQ }) space.index['primary']:pairs(function() end, { iterator = box.index.EQ })
--- ---
- error: 'builtin/msgpackffi.lua:258: can not encode Lua type: ''function''' - error: 'builtin/msgpackffi.lua:259: can not encode Lua type: ''function'''
... ...
-- Check that iterators successfully invalidated when index deleted -- Check that iterators successfully invalidated when index deleted
gen, param, state = space.index['i1']:pairs(nil, { iterator = box.index.GE }) gen, param, state = space.index['i1']:pairs(nil, { iterator = box.index.GE })
...@@ -941,18 +941,14 @@ gen, param, state = space.index.t1:pairs({}, {iterator = box.index.ALL}) ...@@ -941,18 +941,14 @@ gen, param, state = space.index.t1:pairs({}, {iterator = box.index.ALL})
print(gen(param, state)) print(gen(param, state))
--- ---
... ...
id = s.index.t1.id id = space.index.t1.id
--- ---
- error: '[string "id = s.index.t1.id "]:1: attempt to index field ''t1'' (a nil value)'
... ...
box.schema.index.drop(s.id, id) box.schema.index.drop(space.id, id)
--- ---
- error: Illegal parameters, index_id should be a number
... ...
box.schema.index.alter(s.id, s.index.t2.id, {id = id}) box.schema.index.alter(space.id, space.index.t2.id, {id = id})
--- ---
- error: '[string "return box.schema.index.alter(s.id, s.index.t..."]:1: attempt to
index field ''t2'' (a nil value)'
... ...
print(gen(param, state)) print(gen(param, state))
--- ---
......
...@@ -186,9 +186,9 @@ box.space.test:insert{1} ...@@ -186,9 +186,9 @@ box.space.test:insert{1}
gen, param, state = space.index.t1:pairs({}, {iterator = box.index.ALL}) gen, param, state = space.index.t1:pairs({}, {iterator = box.index.ALL})
print(gen(param, state)) print(gen(param, state))
id = s.index.t1.id id = space.index.t1.id
box.schema.index.drop(s.id, id) box.schema.index.drop(space.id, id)
box.schema.index.alter(s.id, s.index.t2.id, {id = id}) box.schema.index.alter(space.id, space.index.t2.id, {id = id})
print(gen(param, state)) print(gen(param, state))
......
...@@ -672,5 +672,5 @@ offset ...@@ -672,5 +672,5 @@ offset
... ...
a, offset = msgpackffi.decode_unchecked(dump, offset) a, offset = msgpackffi.decode_unchecked(dump, offset)
--- ---
- error: 'builtin/msgpackffi.lua:457: offset = 9 is out of bounds [1..8]' - error: 'builtin/msgpackffi.lua:458: offset = 9 is out of bounds [1..8]'
... ...
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