Make a test less flaky; formatting

This commit is contained in:
Michal Kuratczyk 2022-12-22 14:59:47 +01:00
parent 4160dac33e
commit 44ed4eb340
No known key found for this signature in database
1 changed files with 10 additions and 5 deletions

View File

@ -1710,7 +1710,12 @@ max_length_bytes(Config) ->
Payload = << <<"1">> || _ <- lists:seq(1, 100) >>, Payload = << <<"1">> || _ <- lists:seq(1, 100) >>,
publish_confirm(Ch, Q, [Payload || _ <- lists:seq(1, 500)]), %% 100 bytes/msg * 500 = 50000 bytes %% 100 bytes/msg * 500 = 50000 bytes
publish_confirm(Ch, Q, [Payload || _ <- lists:seq(1, 100)]),
publish_confirm(Ch, Q, [Payload || _ <- lists:seq(1, 100)]),
publish_confirm(Ch, Q, [Payload || _ <- lists:seq(1, 100)]),
publish_confirm(Ch, Q, [Payload || _ <- lists:seq(1, 100)]),
publish_confirm(Ch, Q, [Payload || _ <- lists:seq(1, 100)]),
ensure_retention_applied(Config, Server), ensure_retention_applied(Config, Server),
%% We don't yet have reliable metrics, as the committed offset doesn't work %% We don't yet have reliable metrics, as the committed offset doesn't work