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:
parent
a9aa23bc9c
commit
6d2d0694e3
1 changed files with 1 additions and 1 deletions
|
@ -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">>],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue