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/07/24 20:50:35 UTC

[couchdb] branch optimize-ddoc-cache updated: FIXUP: Remove bad assertions and debug log

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 876f5da  FIXUP: Remove bad assertions and debug log
876f5da is described below

commit 876f5dad0c58855b5175d5d981ad55fe69f5049d
Author: Paul J. Davis <pa...@gmail.com>
AuthorDate: Mon Jul 24 15:50:28 2017 -0500

    FIXUP: Remove bad assertions and debug log
---
 src/ddoc_cache/test/ddoc_cache_lru_test.erl | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/ddoc_cache/test/ddoc_cache_lru_test.erl b/src/ddoc_cache/test/ddoc_cache_lru_test.erl
index 0653afb..fab232b 100644
--- a/src/ddoc_cache/test/ddoc_cache_lru_test.erl
+++ b/src/ddoc_cache/test/ddoc_cache_lru_test.erl
@@ -166,9 +166,7 @@ check_cache_refill({DbName, _}) ->
 
     lists:foreach(fun(I) ->
         Key = InitDDoc(I),
-        couch_log:error("STARTED? ~p", [Key]),
-        meck:wait(ddoc_cache_ev, event, [started, Key], 1000),
-        ?assert(ets:info(?CACHE, size) > 0)
+        meck:wait(ddoc_cache_ev, event, [started, Key], 1000)
     end, lists:seq(1, 5)),
 
     ShardName = element(2, hd(mem3:shards(DbName))),
@@ -179,8 +177,7 @@ check_cache_refill({DbName, _}) ->
 
     lists:foreach(fun(I) ->
         Key = InitDDoc(I),
-        meck:wait(ddoc_cache_ev, event, [started, Key], 1000),
-        ?assert(ets:info(?CACHE, size) > 0)
+        meck:wait(ddoc_cache_ev, event, [started, Key], 1000)
     end, lists:seq(6, 10)).
 
 

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