From aee53332bf21ac8009eb1a91e56c0773cdec69c3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Chmielowski?= Date: Wed, 9 Jan 2019 18:33:39 +0100 Subject: [PATCH] Change a way that tests start ejabberd --- test/ejabberd_SUITE.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/ejabberd_SUITE.erl b/test/ejabberd_SUITE.erl index 315c5bb0a..77e6ebdfb 100644 --- a/test/ejabberd_SUITE.erl +++ b/test/ejabberd_SUITE.erl @@ -65,13 +65,13 @@ init_per_suite(Config) -> start_ejabberd(Config) -> case proplists:get_value(backends, Config) of all -> - ok = application:start(ejabberd, transient); + {ok, _} = application:ensure_all_started(ejabberd, transient); Backends when is_list(Backends) -> Hosts = lists:map(fun(Backend) -> Backend ++ ".localhost" end, Backends), application:load(ejabberd), AllHosts = Hosts ++ ["localhost"], %% We always need localhost for the generic no_db tests application:set_env(ejabberd, hosts, AllHosts), - ok = application:start(ejabberd, transient) + {ok, _} = application:ensure_all_started(ejabberd, transient) end. end_per_suite(_Config) -> -- 2.40.0