mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
Handle gracefully that mnesia is already loaded when starting tests
This commit is contained in:
parent
7e1df0752a
commit
71a856deaa
@ -89,8 +89,14 @@ init_config(Config) ->
|
||||
ConfigPath = filename:join([CWD, "ejabberd.yml"]),
|
||||
ok = file:write_file(ConfigPath, CfgContent2),
|
||||
setup_ejabberd_lib_path(Config),
|
||||
ok = application:load(sasl),
|
||||
ok = application:load(mnesia),
|
||||
case application:load(sasl) of
|
||||
ok -> ok;
|
||||
{error, {already_loaded, _}} -> ok
|
||||
end,
|
||||
case application:load(mnesia) of
|
||||
ok -> ok;
|
||||
{error, {already_loaded, _}} -> ok
|
||||
end,
|
||||
case application:load(ejabberd) of
|
||||
ok -> ok;
|
||||
{error, {already_loaded, _}} -> ok
|
||||
|
Loading…
Reference in New Issue
Block a user