From 485f8e48e574095bad3fb8c71bacf4914767cdf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Wed, 31 Jan 2018 09:34:54 +0100 Subject: [PATCH] Fix mod_roster start invocation in elixir tests --- test/mod_roster_mock.exs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/mod_roster_mock.exs b/test/mod_roster_mock.exs index 02b62183e..bdbde2aad 100644 --- a/test/mod_roster_mock.exs +++ b/test/mod_roster_mock.exs @@ -45,9 +45,9 @@ defmodule ModRosterMock do :ejabberd_mnesia.create(:mod_roster_mnesia, :roster_version, [ram_copies: [node()], attributes: Keyword.keys(roster_version(roster_version()))]) - #:mod_roster.stop(domain) - :mod_roster.start(domain, []) - end + #:mod_roster.stop(domain) + :gen_mod.start_module(domain, :mod_roster) + end def mock_with_moka(module) do try do