Skip to content

Commit

Permalink
Merge pull request #3999 from esl/mu-fix-muc-wait-for-archive-size
Browse files Browse the repository at this point in the history
Add wait_for_room_archive_size into given_fresh_room_with_messages in muc_SUITE
  • Loading branch information
chrzaszcz authored Apr 4, 2023
2 parents 3698656 + 4c6bfcf commit 0ef1f00
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions big_tests/tests/muc_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -4359,6 +4359,13 @@ given_fresh_room_with_messages_is_hibernated(Owner, RoomName, Opts, Participant)
escalus:assert(is_groupchat_message, [MessageBin], escalus:wait_for_stanza(Participant)),
escalus:assert(is_groupchat_message, [MessageBin], escalus:wait_for_stanza(Owner)),
wait_for_hibernation(Pid),
%% Archiving is an async operation, so ensure that the message is actually stored
case mongoose_helper:is_rdbms_enabled(host_type()) of
true ->
mam_helper:wait_for_room_archive_size(muc_host(), RoomName, 1);
false ->
skip
end,
{MessageBin, Result}.

forget_room(HostType, MUCHost, RoomName) ->
Expand Down

0 comments on commit 0ef1f00

Please sign in to comment.