diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2015-08-23 16:44:58 +1200 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2015-08-23 16:44:58 +1200 |
commit | 691662c794401b1061164710cd35c9a1000e80a1 (patch) | |
tree | 9efe522403b2fb9fd284e6e6af488a4a6b7fa846 /test | |
parent | 070e9d329bcbae9a7912b7cd84af0a97bc1c3c19 (diff) | |
parent | 391959dae8540a96c1945082f3b62fbe46914800 (diff) |
Merge pull request #740 from tsloughter/hex_output
use 'default' for default hex repo path in cache and include in info messages
Diffstat (limited to 'test')
-rw-r--r-- | test/rebar_pkg_SUITE.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/rebar_pkg_SUITE.erl b/test/rebar_pkg_SUITE.erl index 3cd3a67..b0b7eda 100644 --- a/test/rebar_pkg_SUITE.erl +++ b/test/rebar_pkg_SUITE.erl @@ -148,7 +148,7 @@ bad_disconnect(Config) -> Tmp = ?config(tmp_dir, Config), {Pkg,Vsn} = ?config(pkg, Config), State = ?config(state, Config), - ?assertEqual(request_failed, + ?assertEqual({fetch_fail, Pkg, Vsn}, rebar_pkg_resource:download(Tmp, {pkg, Pkg, Vsn}, State)). @@ -183,6 +183,7 @@ mock_config(Name, Config) -> meck:expect(rebar_dir, global_cache_dir, fun(_) -> CacheRoot end), meck:new(rebar_packages, [passthrough]), + meck:expect(rebar_packages, registry_dir, fun(_) -> CacheDir end), meck:expect(rebar_packages, package_dir, fun(_) -> CacheDir end), rebar_prv_update:hex_to_index(rebar_state:new()), |