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:28:24 UTC
[couchdb] branch optimize-ddoc-cache updated: FIXUP: Label state
variable with a name
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 0d2e182 FIXUP: Label state variable with a name
0d2e182 is described below
commit 0d2e1825ca2c742312802aa81b2208685412c83d
Author: Paul J. Davis <pa...@gmail.com>
AuthorDate: Mon Jul 24 15:28:13 2017 -0500
FIXUP: Label state variable with a name
---
src/ddoc_cache/test/ddoc_cache_entry_test.erl | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/ddoc_cache/test/ddoc_cache_entry_test.erl b/src/ddoc_cache/test/ddoc_cache_entry_test.erl
index 49b24a9..534c5b4 100644
--- a/src/ddoc_cache/test/ddoc_cache_entry_test.erl
+++ b/src/ddoc_cache/test/ddoc_cache_entry_test.erl
@@ -107,12 +107,14 @@ evict_when_not_accessed(_) ->
true = ets:insert_new(?CACHE, #entry{key = Key}),
{ok, Entry} = ddoc_cache_entry:start_link(Key, undefined),
Ref = erlang:monitor(process, Entry),
- ?assertEqual(1, element(7, sys:get_state(Entry))),
+ AccessCount1 = element(7, sys:get_state(Entry)),
+ ?assertEqual(1, AccessCount),
ok = gen_server:cast(Entry, refresh),
meck:wait(ddoc_cache_ev, event, [update_noop, Key], 1000),
- ?assertEqual(0, element(7, sys:get_state(Entry))),
+ AccessCount2 = element(7, sys:get_state(Entry)),
+ ?assertEqual(0, AccessCount2),
ok = gen_server:cast(Entry, refresh),
receive {'DOWN', Ref, _, _, Reason} -> Reason end,
?assertEqual(normal, Reason),
--
To stop receiving notification emails like this one, please contact
['"commits@couchdb.apache.org" <co...@couchdb.apache.org>'].