diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2016-05-24 21:44:20 -0400 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2016-05-24 21:44:20 -0400 |
commit | 00e06c1999e0e6e1dafdc4d7c835c89b473b65aa (patch) | |
tree | 4d6afb291d405e23df0e00cd1ffb08b3c6384848 /test/rebar_pkg_alias_SUITE.erl | |
parent | 24c43040c9280220efd01096605980f8b28b5f33 (diff) |
Make tests pass
Tests have broken as locks were expanded and auto-filled newer versions
of lockfiles. This fixes them back.
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). |