diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2016-06-22 12:44:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-22 12:44:17 -0400 |
commit | feed75ca91423be8eaf49e1db57a5ef605238aed (patch) | |
tree | 4cfdb045ad1f8eab45a583a95ad297edfc444f51 /test/rebar_pkg_alias_SUITE.erl | |
parent | 4fd419528186cb399f5cbeec7051afa89e7bbf3c (diff) | |
parent | 71df9bf1411c04e2f7dae7e9f0352180664b9365 (diff) |
Merge pull request #1207 from ferd/pkg-local-hash-lock
lock file contains expected hash for pkg dependencies
Diffstat (limited to 'test/rebar_pkg_alias_SUITE.erl')
-rw-r--r-- | test/rebar_pkg_alias_SUITE.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rebar_pkg_alias_SUITE.erl b/test/rebar_pkg_alias_SUITE.erl index fef2310..8915357 100644 --- a/test/rebar_pkg_alias_SUITE.erl +++ b/test/rebar_pkg_alias_SUITE.erl @@ -55,7 +55,7 @@ diff_alias(Config) -> Config, RebarConfig, ["lock"], {ok, [{lock, "fakelib"},{dep, "fakelib"}]} ), - {ok, [LockData]} = file:consult(Lockfile), + {ok, [{_Vsn, LockData}|_]} = file:consult(Lockfile), ?assert(lists:any(fun({<<"fakelib">>,{pkg,<<"goodpkg">>,_},_}) -> true ; (_) -> false end, LockData)), %% An second run yields the same @@ -63,13 +63,13 @@ diff_alias(Config) -> Config, RebarConfig, ["lock"], {ok, [{lock, "fakelib"},{dep, "fakelib"}]} ), - {ok, [LockData]} = file:consult(Lockfile), + {ok, [{_Vsn, LockData}|_]} = file:consult(Lockfile), %% So does an upgrade rebar_test_utils:run_and_check( Config, RebarConfig, ["upgrade"], {ok, [{lock, "fakelib"},{dep, "fakelib"}]} ), - {ok, [LockData]} = file:consult(Lockfile). + {ok, [{_Vsn, LockData}|_]} = file:consult(Lockfile). diff_alias_vsn(Config) -> diff_alias(Config). |