summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2016-10-03 23:35:58 -0400
committerFred Hebert <mononcqc@ferd.ca>2016-10-03 23:35:58 -0400
commit75920a13a4251336d21bcbdbedb601dcf35de1f7 (patch)
tree3917d5cbc15b1f0abf5fdcc4642a6d2e89e5581a /test
parent384e9e58dba9ff8cf801bfdbe3c2ec406453aa5f (diff)
Update existing tests to use new index structure
Diffstat (limited to 'test')
-rw-r--r--test/mock_pkg_resource.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/mock_pkg_resource.erl b/test/mock_pkg_resource.erl
index f837713..5769988 100644
--- a/test/mock_pkg_resource.erl
+++ b/test/mock_pkg_resource.erl
@@ -149,7 +149,10 @@ to_index(AllDeps, Dict) ->
ets:new(package_index, [named_table, public]),
dict:fold(
fun(K, Deps, _) ->
- DepsList = [{ec_cnv:to_binary(DK), ec_cnv:to_binary(DV)} || {DK, DV} <- Deps],
+ DepsList = [{DKB, {pkg, DKB, DVB, undefined}}
+ || {DK, DV} <- Deps,
+ DKB <- [ec_cnv:to_binary(DK)],
+ DVB <- [ec_cnv:to_binary(DV)]],
ets:insert(package_index, {K, DepsList, <<"checksum">>})
end, ok, Dict),
ets:insert(package_index, {package_index_version, 3}),