couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [16/48] couch commit: updated refs/heads/master to 7776921
Date Sat, 04 Apr 2015 23:29:11 GMT
Return #test_context{} from test_util:start_couch

COUCHDB-2547


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

Branch: refs/heads/master
Commit: a78267ba9f844197159491e844921c5a1c23b15e
Parents: 72c313d
Author: ILYA Khlopotov <iilyak@ca.ibm.com>
Authored: Mon Feb 2 06:50:20 2015 -0800
Committer: ILYA Khlopotov <iilyak@ca.ibm.com>
Committed: Tue Feb 10 11:03:00 2015 -0800

----------------------------------------------------------------------
 src/test_util.erl | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/a78267ba/src/test_util.erl
----------------------------------------------------------------------
diff --git a/src/test_util.erl b/src/test_util.erl
index a4ab007..ec2029d 100644
--- a/src/test_util.erl
+++ b/src/test_util.erl
@@ -68,14 +68,20 @@ start_couch(ExtraApps) ->
 start_couch(IniFiles, ExtraApps) ->
     ok = application:set_env(config, ini_files, IniFiles),
     ok = lager:start(),
-    Ctx = start_applications([inets, ibrowse, ssl, config, couch] ++ ExtraApps),
+
+    Apps = start_applications(
+        [inets, ibrowse, ssl, config, couch_event, couch]
+        ++ ExtraApps),
+
     couch_stats:reload(),
-    Ctx.
+    #test_context{started = Apps}.
 
 stop_couch() ->
     ok = stop_applications([inets, ibrowse, ssl, config, goldrush, lager, couch]),
     ok.
 
+stop_couch(#test_context{started = Apps}) ->
+    stop_applications(Apps);
 stop_couch(_) ->
     stop_couch().
 


Mime
View raw message