summaryrefslogtreecommitdiff
path: root/test/rebar_pkg_alias_SUITE.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/rebar_pkg_alias_SUITE.erl')
-rw-r--r--test/rebar_pkg_alias_SUITE.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rebar_pkg_alias_SUITE.erl b/test/rebar_pkg_alias_SUITE.erl
index d977b64..079a3fd 100644
--- a/test/rebar_pkg_alias_SUITE.erl
+++ b/test/rebar_pkg_alias_SUITE.erl
@@ -229,7 +229,7 @@ mock_config(Name, Config) ->
lists:foreach(fun({{N, Vsn}, [Deps, Checksum, _]}) ->
case ets:member(?PACKAGE_TABLE, {ec_cnv:to_binary(N), Vsn, <<"hexpm">>}) of
false ->
- ets:insert(?PACKAGE_TABLE, #package{key={ec_cnv:to_binary(N), Vsn, <<"hexpm">>},
+ ets:insert(?PACKAGE_TABLE, #package{key={ec_cnv:to_binary(N), ec_semver:parse(Vsn), <<"hexpm">>},
dependencies=[{DAppName, {pkg, DN, DV, undefined}} || {DN, DV, _, DAppName} <- Deps],
retired=false,
checksum=Checksum});