couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject mem3 commit: updated refs/heads/master to f208437
Date Tue, 01 Dec 2015 14:27:53 GMT
Repository: couchdb-mem3
Updated Branches:
  refs/heads/master 80fd81b33 -> f20843714


Don't start couch_log app if we don't use it

This makes no sense since we mock it, but causes unwanted troubles
with config startup dependency.


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

Branch: refs/heads/master
Commit: f20843714eee54c687739c94c6ac870e7a1e6a00
Parents: 80fd81b
Author: Alexander Shorin <kxepal@apache.org>
Authored: Tue Dec 1 17:25:05 2015 +0300
Committer: Alexander Shorin <kxepal@apache.org>
Committed: Tue Dec 1 17:25:05 2015 +0300

----------------------------------------------------------------------
 test/mem3_util_test.erl | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-mem3/blob/f2084371/test/mem3_util_test.erl
----------------------------------------------------------------------
diff --git a/test/mem3_util_test.erl b/test/mem3_util_test.erl
index 3a52027..340a58a 100644
--- a/test/mem3_util_test.erl
+++ b/test/mem3_util_test.erl
@@ -141,15 +141,12 @@ nval_test_() ->
 
 
 config_01_setup() ->
-    {ok, Started} = application:ensure_all_started(couch_log),
     Ini = filename:join([code:lib_dir(mem3, test), "01-config-default.ini"]),
     {ok, Pid} = config:start_link([Ini]),
-    {Pid, Started}.
+    Pid.
 
-config_teardown({_Pid, Started}) ->
-    config:stop(),
-    [ok = application:stop(A) || A <- lists:reverse(Started)],
-    ok.
+config_teardown(_Pid) ->
+    config:stop().
 
 
 n_val_test_() ->
@@ -158,7 +155,7 @@ n_val_test_() ->
       {setup,
        fun config_01_setup/0,
        fun config_teardown/1,
-       fun({Pid, _Started}) ->
+       fun(Pid) ->
            {with, Pid, [
                fun n_val_1/1
             ]}


Mime
View raw message