Skip to content

Commit

Permalink
FIXUP: Use the shard record definition
Browse files Browse the repository at this point in the history
  • Loading branch information
davisp committed Jul 24, 2017
1 parent 61ae43a commit da5eca6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/ddoc_cache/src/ddoc_cache.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
couch_event,
couch_log,
couch_stats,
mem3,
fabric
]},
{mod, {ddoc_cache_app, []}}
Expand Down
3 changes: 2 additions & 1 deletion src/ddoc_cache/test/ddoc_cache_eviction_test.erl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

-include_lib("couch/include/couch_db.hrl").
-include_lib("eunit/include/eunit.hrl").
-include_lib("mem3/include/mem3.hrl").
-include("ddoc_cache_test.hrl").


Expand Down Expand Up @@ -55,7 +56,7 @@ evict_all({DbName, _}) ->
ddoc_cache_tutil:clear(),
meck:reset(ddoc_cache_ev),
Rev = ddoc_cache_tutil:get_rev(DbName, ?FOOBAR),
ShardName = element(2, hd(mem3:shards(DbName))),
#shard{name = ShardName} = hd(mem3:shards(DbName)),
{ok, _} = ddoc_cache:open_doc(DbName, ?FOOBAR),
{ok, _} = ddoc_cache:open_doc(DbName, ?FOOBAR, Rev),
{ok, _} = ddoc_cache:open_validation_funs(DbName),
Expand Down

0 comments on commit da5eca6

Please sign in to comment.