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 d354951
Showing 1 changed file with 2 additions and 1 deletion.
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 d354951

Please sign in to comment.