You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2017/06/30 14:52:14 UTC

[couchdb] branch optimize-ddoc-cache updated: FIXUP: Start enough of couch for couch_stats to work

This is an automated email from the ASF dual-hosted git repository.

davisp pushed a commit to branch optimize-ddoc-cache
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/optimize-ddoc-cache by this push:
     new d3c7393  FIXUP: Start enough of couch for couch_stats to work
d3c7393 is described below

commit d3c7393341a6cedb9cb843ffe24397ab5a1432e0
Author: Paul J. Davis <pa...@gmail.com>
AuthorDate: Fri Jun 30 09:52:10 2017 -0500

    FIXUP: Start enough of couch for couch_stats to work
---
 src/ddoc_cache/test/ddoc_cache_lru_test.erl | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/ddoc_cache/test/ddoc_cache_lru_test.erl b/src/ddoc_cache/test/ddoc_cache_lru_test.erl
index c3058ff..93e1162 100644
--- a/src/ddoc_cache/test/ddoc_cache_lru_test.erl
+++ b/src/ddoc_cache/test/ddoc_cache_lru_test.erl
@@ -44,8 +44,14 @@ stop_couch(Ctx) ->
 
 
 check_not_started_test() ->
-    Key = {ddoc_cache_entry_custom, {<<"dbname">>, ?MODULE}},
-    ?assertEqual({ok, <<"dbname">>}, ddoc_cache_lru:open(Key)).
+    % Starting couch, but not ddoc_cache
+    Ctx = test_util:start_couch(),
+    try
+        Key = {ddoc_cache_entry_custom, {<<"dbname">>, ?MODULE}},
+        ?assertEqual({ok, <<"dbname">>}, ddoc_cache_lru:open(Key))
+    after
+        test_util:stop_couch(Ctx)
+    end.
 
 
 check_lru_test_() ->

-- 
To stop receiving notification emails like this one, please contact
['"commits@couchdb.apache.org" <co...@couchdb.apache.org>'].