summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-02-19 09:27:39 -0600
committerTristan Sloughter <t@crashfast.com>2015-02-19 09:28:56 -0600
commit24383e228373d14c23c56225fe3e974dcbb0b43d (patch)
tree56485e45cd0b3ce815b263c1e064ecfddcb34148 /test
parent595b4eb2e80f9024a9eb338142fb95244e4352c3 (diff)
fix order of top_level_deps function in ugprade_SUITE
Diffstat (limited to 'test')
-rw-r--r--test/rebar_upgrade_SUITE.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rebar_upgrade_SUITE.erl b/test/rebar_upgrade_SUITE.erl
index b4daef9..ed0b2d8 100644
--- a/test/rebar_upgrade_SUITE.erl
+++ b/test/rebar_upgrade_SUITE.erl
@@ -357,10 +357,10 @@ upgrades(delete_d) ->
%% running the upgrade code is enough to properly upgrade things.
top_level_deps([]) -> [];
-top_level_deps([{{Name, Vsn, Ref}, _} | Deps]) ->
- [{list_to_atom(Name), Vsn, Ref} | top_level_deps(Deps)];
top_level_deps([{{pkg, Name, Vsn}, _} | Deps]) ->
- [{list_to_atom(Name), Vsn} | top_level_deps(Deps)].
+ [{list_to_atom(Name), Vsn} | top_level_deps(Deps)];
+top_level_deps([{{Name, Vsn, Ref}, _} | Deps]) ->
+ [{list_to_atom(Name), Vsn, Ref} | top_level_deps(Deps)].
mock_deps(git, Deps, Upgrades) ->
catch mock_git_resource:unmock(),