Skip to content

Clean up excessive test setup #128

Closed
@DifferentialOrange

Description

@DifferentialOrange

#104 added excessive code in main root config

go-tarantool/config.lua

Lines 64 to 84 in fd68e12

-- Create space with UUID pk if supported
local uuid = require('uuid')
local msgpack = require('msgpack')
local uuid_msgpack_supported = pcall(msgpack.encode, uuid.new())
if uuid_msgpack_supported then
local suuid = box.schema.space.create('testUUID', {
id = 524,
if_not_exists = true,
})
suuid:create_index('primary', {
type = 'tree',
parts = {{ field = 1, type = 'uuid' }},
if_not_exists = true
})
suuid:truncate()
box.schema.user.grant('test', 'read,write', 'space', 'testUUID', { if_not_exists = true })
suuid:insert({ uuid.fromstr("c8f0fa1f-da29-438c-a040-393f1126ad39") })
end

I forgot to clean it up after moving all UUID-related code to the separate folder.

Metadata

Metadata

Labels

code healthImprove code readability, simplify maintenance and so on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions