25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Fix elixir tests

This commit is contained in:
Paweł Chmielowski 2018-01-30 19:45:12 +01:00
parent fc3c605945
commit 51f652a1e1
2 changed files with 5 additions and 3 deletions

View File

@ -28,6 +28,7 @@ defmodule EjabberdAdminTest do
:ejabberd_mnesia.start
# For some myterious reason, :ejabberd_commands.init mays
# sometimes fails if module is not loaded before
:ejabberd_config.start(["domain"], [])
{:module, :ejabberd_commands} = Code.ensure_loaded(:ejabberd_commands)
:ejabberd_hooks.start_link
{:ok, _} = :acl.start_link

View File

@ -48,10 +48,10 @@ defmodule EjabberdModAdminExtraTest do
_ -> :ok
end
:ok = :ejabberd_config.start(["domain"], [])
:gen_mod.start_link
:acl.start_link
:ejabberd_access_permissions.start_link()
:ejabberd_commands.start_link
:gen_mod.start_link
:mod_admin_extra.start(@domain, [])
:sel_application.start_app(:moka)
:ejabberd_hooks.start_link
@ -324,6 +324,7 @@ defmodule EjabberdModAdminExtraTest do
end
@tag :skip
test "get_roster works" do
assert [] == ModRosterMock.get_roster(@user, @domain)
assert [] == call_command(:get_roster, [@user, @domain],