Skip to content

Commit c570235

Browse files
committed
CQ: Change the scan test to pad with zeroes instead of random bytes
We don't expect random bytes to be there in the current version of the message store as we overwrite empty spaces with zeroes when moving messages around.
1 parent 2795293 commit c570235

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/rabbit/test/backing_queue_SUITE.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,8 +668,8 @@ gen_msg_file(Config, Blocks) ->
668668
{bin, Bin} ->
669669
Bin;
670670
{pad, Size} ->
671-
%% This might generate false positives although very unlikely.
672-
rand:bytes(Size);
671+
%% Empty space between messages is expected to be zeroes.
672+
<<0:Size/unit:8>>;
673673
{msg, MsgId, Msg} ->
674674
Size = 16 + byte_size(Msg),
675675
[<<Size:64>>, MsgId, Msg, <<255>>]

0 commit comments

Comments
 (0)