couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chewbra...@apache.org
Subject [09/11] config commit: updated refs/heads/1963-eunit-bigcouch to 7a8e21e
Date Thu, 28 Aug 2014 22:35:29 GMT
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/1963-eunit-bigcouch
Commit: 405f6775d7e6a6945416c8dccaa5b8b937091a7a
Parents: 00955e8
Author: Russell Branca <chewbranca@apache.org>
Authored: Thu Aug 28 15:34:32 2014 -0700
Committer: Russell Branca <chewbranca@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, _} ->


Mime
View raw message