Skip to content

Commit 919235c

Browse files
committed
test: fix double definition variable "local space"
1 parent f16960f commit 919235c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/shared/box.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,23 +97,23 @@ box.once('initialization', function()
9797
parts = {2, compat.unsigned, 3, compat.string}
9898
})
9999

100-
local space = box.schema.space.create('msgpack')
101-
space:create_index('primary', {
100+
local space_msgpack = box.schema.space.create('msgpack')
101+
space_msgpack:create_index('primary', {
102102
parts = {1, compat.unsigned}
103103
})
104-
space:insert{1, 'float as key', {
104+
space_msgpack:insert{1, 'float as key', {
105105
[2.7] = {1, 2, 3}
106106
}}
107-
space:insert{2, 'array as key', {
107+
space_msgpack:insert{2, 'array as key', {
108108
[{2, 7}] = {1, 2, 3}
109109
}}
110-
space:insert{3, 'array with float key as key', {
110+
space_msgpack:insert{3, 'array with float key as key', {
111111
[{
112112
[2.7] = 3,
113113
[7] = 7
114114
}] = {1, 2, 3}
115115
}}
116-
space:insert{6, 'array with string key as key', {
116+
space_msgpack:insert{6, 'array with string key as key', {
117117
['megusta'] = {1, 2, 3}
118118
}}
119119

0 commit comments

Comments
 (0)