summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2010-06-23 11:12:40 +0100
committerSimon MacMullen <simon@rabbitmq.com>2010-06-23 11:12:40 +0100
commit827dda957742958a3c16d07fcb95234c80f5d2c2 (patch)
tree75d7c31116cdf49b7fee150dc03d445671117d85
parent64b88a0baaea86218b9742acc2510868e89ce9d0 (diff)
downloadrabbitmq-server-827dda957742958a3c16d07fcb95234c80f5d2c2.tar.gz
Cosmetics
-rw-r--r--src/rabbit_tests.erl22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/rabbit_tests.erl b/src/rabbit_tests.erl
index a74beb99..cf782497 100644
--- a/src/rabbit_tests.erl
+++ b/src/rabbit_tests.erl
@@ -362,33 +362,33 @@ test_content_framing(FrameMax, Fragments) ->
#content{class_id = 0, properties_bin = <<>>,
payload_fragments_rev = Fragments},
FrameMax),
- % header is formatted correctly and the size is the total of the
- % fragments
+ %% header is formatted correctly and the size is the total of the
+ %% fragments
<<_FrameHeader:7/binary, _ClassAndWeight:4/binary,
- BodySize:64/unsigned, _Rest/binary>> = list_to_binary(Header),
+ BodySize:64/unsigned, _Rest/binary>> = list_to_binary(Header),
BodySize = size(list_to_binary(Fragments)),
false = lists:any(
fun (ContentFrame) ->
FrameBinary = list_to_binary(ContentFrame),
- % assert
+ %% assert
<<_TypeAndChannel:3/binary,
- Size:32/unsigned,
- _Payload:Size/binary,
- 16#CE>> = FrameBinary,
+ Size:32/unsigned,
+ _Payload:Size/binary,
+ 16#CE>> = FrameBinary,
size(FrameBinary) > FrameMax
end,
Frames),
passed.
test_content_framing() ->
- % no content
+ %% no content
passed = test_content_framing(4096, []),
passed = test_content_framing(4096, [<<>>]),
- % easily fit in one frame
+ %% easily fit in one frame
passed = test_content_framing(4096, [<<"Easy">>]),
- % exactly one frame (empty frame = 8 bytes)
+ %% exactly one frame (empty frame = 8 bytes)
passed = test_content_framing(11, [<<"One">>]),
- % more than one frame
+ %% more than one frame
passed = test_content_framing(20, [<<"into more than one frame">>,
<<"This will have to go">>]),
passed.