Reverse necessary on bucket list

The function should see the buckets in order, so it accumulates in such a way to reverse the order - it makes sense that the outcome should be in reverse.
This commit is contained in:
Martin Sumner 2018-11-23 19:03:24 +00:00
parent a9aa23bc9c
commit 6d2d0694e3

View file

@ -782,7 +782,7 @@ multibucket_fold(_Config) ->
?RIAK_TAG, ?RIAK_TAG,
{FoldBucketsFun, []}, {FoldBucketsFun, []},
all), all),
BucketList = Folder(), BucketList = lists:reverse(Folder()),
ExpectedBucketList = ExpectedBucketList =
[{<<"Type1">>, <<"Bucket1">>}, {<<"Type2">>, <<"Bucket4">>}, [{<<"Type1">>, <<"Bucket1">>}, {<<"Type2">>, <<"Bucket4">>},
<<"Bucket2">>, <<"Bucket3">>], <<"Bucket2">>, <<"Bucket3">>],