You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/09/05 23:11:19 UTC

[09/12] config commit: updated refs/heads/master to 1eb910f

Be explicit about starting and stopping deps


Project: http://git-wip-us.apache.org/repos/asf/couchdb-config/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-config/commit/405f6775
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-config/tree/405f6775
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-config/diff/405f6775

Branch: refs/heads/master
Commit: 405f6775d7e6a6945416c8dccaa5b8b937091a7a
Parents: 00955e8
Author: Russell Branca <ch...@apache.org>
Authored: Thu Aug 28 15:34:32 2014 -0700
Committer: Russell Branca <ch...@apache.org>
Committed: Thu Aug 28 15:34:32 2014 -0700

----------------------------------------------------------------------
 test/config_tests.erl | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-config/blob/405f6775/test/config_tests.erl
----------------------------------------------------------------------
diff --git a/test/config_tests.erl b/test/config_tests.erl
index feebd2d..c95a606 100644
--- a/test/config_tests.erl
+++ b/test/config_tests.erl
@@ -35,6 +35,8 @@
         FileName
     end).
 
+-define(DEPS, [couch_log, lager, goldrush, syntax_tools, compiler]).
+
 
 setup() ->
     setup(?CONFIG_CHAIN).
@@ -43,7 +45,8 @@ setup({temporary, Chain}) ->
 setup({persistent, Chain}) ->
     setup(lists:append(Chain, [?CONFIG_FIXTURE_TEMP]));
 setup(Chain) ->
-    {ok, Pid} = config:start_link(Chain),
+    [ok = application:start(App) || App <- lists:reverse(?DEPS)],
+    {ok, Pid} = test_util:start_config(Chain),
     Pid.
 
 setup_empty() ->
@@ -77,6 +80,7 @@ teardown({ConfigPid, SentinelPid}) ->
     end;
 teardown(Pid) ->
     config:stop(),
+    [ok = application:stop(App) || App <- ?DEPS],
     erlang:monitor(process, Pid),
     receive
         {'DOWN', _, _, Pid, _} ->