Fix chttpd tests using new test_util:start_applications protocol
diff --git a/src/chttpd_test_util.erl b/src/chttpd_test_util.erl
index a4e4c10..7a71ccf 100644
--- a/src/chttpd_test_util.erl
+++ b/src/chttpd_test_util.erl
@@ -12,7 +12,7 @@
-module(chttpd_test_util).
--export([start_couch/0, start_couch/1, stop_couch/0, stop_couch/1]).
+-export([start_couch/0, start_couch/1, stop_couch/1]).
-include_lib("couch/include/couch_eunit.hrl").
@@ -23,22 +23,7 @@
start_couch(IniFiles) ->
ok = application:set_env(config, ini_files, IniFiles),
ok = lager:start(),
- ok = test_util:start_applications([inets, ibrowse, ssl, config, couch, chttpd]),
- ok.
+ test_util:start_applications([inets, ibrowse, ssl, config, couch, chttpd]).
-
-stop_couch() ->
- ok = application:stop(couch),
- ok = application:stop(lager),
- ok = application:stop(goldrush),
- ok = application:stop(config),
- ok = application:stop(ssl),
- ok = application:stop(ibrowse),
- ok = application:stop(inets),
- ok = application:stop(chttpd),
- ok.
-
-
-stop_couch(_) ->
- stop_couch().
-
+stop_couch(Ctx) ->
+ test_util:stop_couch(Ctx).