]> granicus.if.org Git - ejabberd/commitdiff
Change a way that tests start ejabberd
authorPaweł Chmielowski <pchmielowski@process-one.net>
Wed, 9 Jan 2019 17:33:39 +0000 (18:33 +0100)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Wed, 9 Jan 2019 17:33:39 +0000 (18:33 +0100)
test/ejabberd_SUITE.erl

index 315c5bb0a74b9dcd30451c64132cea52f5c9e4a5..77e6ebdfba9205e52781e46f5082f0707d1cc62b 100644 (file)
@@ -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) ->