Skip to content

Commit d3b9ccd

Browse files
DifferentialOrangeligurio
authored andcommitted
Clean up excessive test setup
After moving UUID-related code (including tests) in PR #104 to separate folder, test setup of UUID space was remained in main folder config.lua by mistake. This patch removes it. Closes #128
1 parent e276172 commit d3b9ccd

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

config.lua

-22
Original file line numberDiff line numberDiff line change
@@ -60,25 +60,3 @@ local console = require 'console'
6060
console.listen '0.0.0.0:33015'
6161

6262
--box.schema.user.revoke('guest', 'read,write,execute', 'universe')
63-
64-
-- Create space with UUID pk if supported
65-
local uuid = require('uuid')
66-
local msgpack = require('msgpack')
67-
68-
local uuid_msgpack_supported = pcall(msgpack.encode, uuid.new())
69-
if uuid_msgpack_supported then
70-
local suuid = box.schema.space.create('testUUID', {
71-
id = 524,
72-
if_not_exists = true,
73-
})
74-
suuid:create_index('primary', {
75-
type = 'tree',
76-
parts = {{ field = 1, type = 'uuid' }},
77-
if_not_exists = true
78-
})
79-
suuid:truncate()
80-
81-
box.schema.user.grant('test', 'read,write', 'space', 'testUUID', { if_not_exists = true })
82-
83-
suuid:insert({ uuid.fromstr("c8f0fa1f-da29-438c-a040-393f1126ad39") })
84-
end

0 commit comments

Comments
 (0)