summaryrefslogtreecommitdiff
path: root/test/mock_pkg_resource.erl
diff options
context:
space:
mode:
authorTristan Sloughter <tristan.sloughter@gmail.com>2015-08-21 08:51:42 -0500
committerTristan Sloughter <tristan.sloughter@gmail.com>2015-08-21 08:51:42 -0500
commitb52395f4aec11bacaace91ec72e100c9778d6098 (patch)
tree571b917f2681729f4f299c443066a233027a3d6b /test/mock_pkg_resource.erl
parente9cfbfb36b53d2fc6c7ca34bb49fe75fa112f770 (diff)
parent293dfb79d6181b77f866785b2a08d4ab767a5643 (diff)
Merge pull request #728 from pvmart/master
fix leaking hex_registry table
Diffstat (limited to 'test/mock_pkg_resource.erl')
-rw-r--r--test/mock_pkg_resource.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/mock_pkg_resource.erl b/test/mock_pkg_resource.erl
index eda863b..e5c5645 100644
--- a/test/mock_pkg_resource.erl
+++ b/test/mock_pkg_resource.erl
@@ -35,7 +35,7 @@ mock(Opts) ->
unmock() ->
meck:unload(?MOD),
- meck:unload(rebar_packages).
+ meck:unload(rebar_state).
%%%%%%%%%%%%%%%
%%% Private %%%
@@ -115,10 +115,10 @@ mock_pkg_index(Opts) ->
Dict = find_parts(Deps, Skip),
GraphParts = to_graph_parts(Dict),
Digraph = rebar_digraph:restore_graph(GraphParts),
- meck:new(rebar_packages, [passthrough, no_link]),
- meck:expect(rebar_packages, registry,
+ meck:new(rebar_state, [passthrough, no_link]),
+ meck:expect(rebar_state, registry,
fun(_State) -> {ok, to_registry(Deps)} end),
- meck:expect(rebar_packages, get_packages,
+ meck:expect(rebar_state, packages,
fun(_State) -> {Dict, Digraph} end).
%%%%%%%%%%%%%%%