summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_tests.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rabbit_tests.erl b/src/rabbit_tests.erl
index c4bd1836bf..d5c096a197 100644
--- a/src/rabbit_tests.erl
+++ b/src/rabbit_tests.erl
@@ -2319,9 +2319,8 @@ test_variable_queue_fold(VQ0) ->
VQ1 = rabbit_variable_queue:set_ram_duration_target(0, VQ0),
VQ2 = variable_queue_publish(
true, Count, fun (_, P) -> P end, fun erlang:term_to_binary/1, VQ1),
- {Acc, VQ3} = rabbit_variable_queue:fold(fun (M, _, A) ->
- [M | A]
- end, [], VQ2),
+ {Acc, VQ3} = rabbit_variable_queue:fold(
+ fun (M, _, A) -> [M | A] end, [], VQ2),
true = [term_to_binary(N) || N <- lists:seq(Count, 1, -1)] ==
[list_to_binary(lists:reverse(P)) ||
#basic_message{ content = #content{ payload_fragments_rev = P}} <-