Skip to content

Commit

Permalink
test: use consistent setup for cartridge
Browse files Browse the repository at this point in the history
Part of #415
  • Loading branch information
DifferentialOrange committed Apr 3, 2024
1 parent 21e5d0b commit c1b62d6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/entrypoint/srv_say_hi/cartridge_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,20 @@ end
local root = fio.dirname(fio.dirname(fio.dirname(debug.sourcedir())))
package.path = package.path .. root .. "/?.lua;"

local ok, err
package.preload['customers-storage'] = function()
return {
role_name = 'customers-storage',
}
end

ok, err = errors.pcall('CartridgeCfgError', cartridge.cfg, {
local ok, err = errors.pcall('CartridgeCfgError', cartridge.cfg, {
advertise_uri = 'localhost:3301',
http_port = 8081,
bucket_count = 3000,
roles = {
'cartridge.roles.crud-storage',
'cartridge.roles.crud-router',
'customers-storage',
},
})

Expand Down

0 comments on commit c1b62d6

Please sign in to comment.