couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject couch commit: updated refs/heads/master to 010704a
Date Wed, 27 Jan 2016 11:33:28 GMT
Repository: couchdb-couch
Updated Branches:
  refs/heads/master f33f9fa12 -> 010704ad9


Remove lager and goldrush from default list of apps started by test_util:start_couch/2

Also, create a common list of default apps that is started and stopped consistently

COUCHDB-2872


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/010704ad
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/010704ad
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/010704ad

Branch: refs/heads/master
Commit: 010704ad9ddfd8bbd28c91e6c87484ef25afa296
Parents: f33f9fa
Author: Jay Doane <jay.s.doane@gmail.com>
Authored: Thu Nov 5 18:13:30 2015 -0800
Committer: Jay Doane <jay.s.doane@gmail.com>
Committed: Wed Jan 20 21:25:19 2016 -0800

----------------------------------------------------------------------
 src/test_util.erl | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/010704ad/src/test_util.erl
----------------------------------------------------------------------
diff --git a/src/test_util.erl b/src/test_util.erl
index d13f850..87edafa 100644
--- a/src/test_util.erl
+++ b/src/test_util.erl
@@ -34,6 +34,9 @@
 
 -record(test_context, {mocked = [], started = [], module}).
 
+-define(DEFAULT_APPS,
+        [inets, ibrowse, ssl, config, couch_epi, couch_event, couch]).
+
 srcdir() ->
     code:priv_dir(couch) ++ "/../../".
 
@@ -68,16 +71,11 @@ start_couch(ExtraApps) ->
 start_couch(IniFiles, ExtraApps) ->
     load_applications_with_stats(),
     ok = application:set_env(config, ini_files, IniFiles),
-
-    Apps = start_applications(
-        [goldrush, lager, inets, ibrowse, ssl, config, couch_epi, couch_event, couch]
-        ++ ExtraApps),
-
+    Apps = start_applications(?DEFAULT_APPS ++ ExtraApps),
     #test_context{started = Apps}.
 
 stop_couch() ->
-    ok = stop_applications([inets, ibrowse, ssl, config, goldrush, lager, couch]),
-    ok.
+    ok = stop_applications(?DEFAULT_APPS).
 
 stop_couch(#test_context{started = Apps}) ->
     stop_applications(Apps);


Mime
View raw message