=== Test case: mam_SUITE:muc_archive_is_instrumented/1 (click for source code)

=== Config value:

    [{props,[{mam_ns,<<"urn:xmpp:mam:2">>}]},
     {with_rsm,true},
     {watchdog,<0.48235.0>},
     {basic_group,muc_all},
     {configuration,rdbms_async_pool},
     {wait_for_parallel_writer,[muc]},
     {mam_meta_opts,#{cache =>
                          #{module => internal,strategy => fifo,
                            number_of_segments => 3,time_to_live => 480},
                      muc => #{host => {prefix,<<"groupchats.">>}},
                      send_message => mod_mam_utils,backend => rdbms,
                      is_archivable_message => mod_mam_utils,
                      max_result_limit => 50,default_result_limit => 50,
                      enforce_simple_queries => false,
                      archive_chat_markers => false,full_text_search => true,
                      message_retraction => true,
                      async_writer =>
                          #{enabled => true,pool_size => 16,batch_size => 30,
                            flush_interval => 1},
                      no_stanzaid_element => false,user_prefs_store => rdbms,
                      cache_users => false}},
     {mod_offline_loaded,false},
     {escalus_user_db,{module,escalus_ejabberd}},
     {preset,"odbc_mssql_mnesia"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/mam_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@537a0bef439b.2024-03-29_09.14.34/big_tests.tests.mam_SUITE.logs/run.2024-03-29_09.24.25/mam_suite.muc_archive_is_instrumented.91011.html"},
     {tc_group_properties,[{name,muc06},parallel]},
     {tc_group_path,[[{name,rdbms_async_pool_muc_all},parallel]]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/mam_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@537a0bef439b.2024-03-29_09.14.34/big_tests.tests.mam_SUITE.logs/run.2024-03-29_09.24.25/log_private/"},
     {config_backup,#{[shaper,fast] => {ok,#{max_rate => 50000}},
                      [shaper,mam_shaper] => {ok,#{max_rate => 1}},
                      [shaper,normal] => {ok,#{max_rate => 1000}},
                      [{access,<<"test type">>},max_user_sessions] =>
                          {ok,[#{value => 10,acl => all}]}}},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,iqdisc => parallel,backend => rdbms},
        mod_roster =>
            #{iqdisc => one_queue,backend => rdbms,versioning => false,
              store_current_id => false},
        mod_amp => #{},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_sic => #{iqdisc => one_queue},
        mod_muc =>
            #{access => muc,
              host => {prefix,<<"groupchats.">>},
              max_users => 200,room_shaper => none,http_auth_pool => none,
              hibernate_timeout => 2000,backend => rdbms,
              online_backend => mnesia,history_size => 20,
              min_presence_interval => 0,access_admin => none,
              access_persistent => all,max_users_admin_threshold => 5,
              user_message_shaper => none,user_presence_shaper => none,
              min_message_interval => 0,max_user_conferences => 10,
              max_room_name => infinity,max_room_desc => infinity,
              default_room =>
                  #{public => true,description => <<>>,title => <<>>,
                    persistent => false,password => <<>>,affiliations => [],
                    subject => <<>>,allow_change_subj => true,
                    allow_query_users => true,allow_private_messages => true,
                    allow_visitor_status => true,
                    allow_visitor_nickchange => true,public_list => true,
                    moderated => true,members_by_default => true,
                    members_only => false,allow_user_invites => false,
                    allow_multiple_sessions => false,
                    password_protected => false,anonymous => true,
                    max_users => 200,maygetmemberlist => [],logging => false,
                    subject_author => <<>>},
              hibernated_room_check_interval => 1000,
              hibernated_room_timeout => 2000,access_create => muc_create,
              load_permanent_rooms_at_startup => false,
              max_room_id => infinity},
        mod_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_muc_log =>
            #{dirname => room_jid,outdir => "/tmp/muclogs",
              file_format => html,css_file => false,timezone => local,
              spam_prevention => true,
              top_link => {"/","Home"},
              access_log => muc,dirtype => subdirs},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,buffer_max => 100,
              ack_freq => 1,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              resume_timeout => 600},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue}}},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"domain.example.com">>},
                             {host,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"domain.example.com">>},
                           {host,<<"localhost">>},
                           {password,<<"makrolika">>}]},
                     {kate,[{username,<<"kate">>},
                            {server,<<"domain.example.com">>},
                            {host,<<"localhost">>},
                            {password,<<"makrowe;p">>}]},
                     {carol,[{username,<<"carol">>},
                             {server,<<"domain.example.com">>},
                             {host,<<"localhost">>},
                             {password,<<"jinglebells">>},
                             {transport,escalus_bosh},
                             {path,<<"/http-bind">>},
                             {port,5280}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@537a0bef439b.2024-03-29_09.14.34"

=== Started at 2024-03-29 09:25:03


*** CT 2024-03-29 09:25:03.579 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_3295.html

*** User 2024-03-29 09:25:03.751 ***🔗
alicE_unnamed_2079@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-29 09:25:03.752 ***🔗
alicE_unnamed_2079@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3eb5e1a86dcb5dc7' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-03-29 09:25:03.752 ***🔗
alicE_unnamed_2079@domain.example.com/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-29 09:25:03.753 ***🔗
alicE_unnamed_2079@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VubmFtZWRfMjA3OQBtYXR5Z3J5c2E=</auth>



*** User 2024-03-29 09:25:03.757 ***🔗
alicE_unnamed_2079@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-29 09:25:03.757 ***🔗
alicE_unnamed_2079@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-29 09:25:03.759 ***🔗
alicE_unnamed_2079@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e6031587dafa2b29' from='domain.example.com' version='1.0' xml:lang='en' to='alice_unnamed_2079@domain.example.com'>

*** User 2024-03-29 09:25:03.759 ***🔗
alicE_unnamed_2079@domain.example.com/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-29 09:25:03.759 ***🔗
alicE_unnamed_2079@domain.example.com/res1 out
<iq type='set' id='9aa9a5fadcb93032460227e2efae0aae'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-29 09:25:03.761 ***🔗
alicE_unnamed_2079@domain.example.com/res1 in
<iq id='9aa9a5fadcb93032460227e2efae0aae' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_unnamed_2079@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-03-29 09:25:03.761 ***🔗
alice_unnamed_2079@domain.example.com/res1 out
<iq type='set' id='f32f4d05d0dba34c41142e9b30a38b67'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-29 09:25:03.762 ***🔗
alice_unnamed_2079@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_unnamed_2079@domain.example.com/res1' id='f32f4d05d0dba34c41142e9b30a38b67' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-29 09:25:03.762 ***🔗
alice_unnamed_2079@domain.example.com/res1 out
<presence/>



*** User 2024-03-29 09:25:03.768 ***🔗
alice_unnamed_2079@domain.example.com/res1 in
<presence from='alice_unnamed_2079@domain.example.com/res1' to='alice_unnamed_2079@domain.example.com/res1'/>



*** User 2024-03-29 09:25:03.772 ***🔗
bOb_unnamed_2079@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-29 09:25:03.772 ***🔗
bOb_unnamed_2079@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0260d1e12f3e3495' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-03-29 09:25:03.773 ***🔗
bOb_unnamed_2079@domain.example.com/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-29 09:25:03.774 ***🔗
bOb_unnamed_2079@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl91bm5hbWVkXzIwNzkAbWFrcm9saWth</auth>



*** User 2024-03-29 09:25:03.776 ***🔗
bOb_unnamed_2079@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-29 09:25:03.776 ***🔗
bOb_unnamed_2079@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-29 09:25:03.777 ***🔗
bOb_unnamed_2079@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dd4712f808dfda31' from='domain.example.com' version='1.0' xml:lang='en' to='bob_unnamed_2079@domain.example.com'>

*** User 2024-03-29 09:25:03.777 ***🔗
bOb_unnamed_2079@domain.example.com/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-29 09:25:03.777 ***🔗
bOb_unnamed_2079@domain.example.com/res1 out
<iq type='set' id='5fab4fe746cebc384ce3ca195d1127f7'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-29 09:25:03.779 ***🔗
bOb_unnamed_2079@domain.example.com/res1 in
<iq id='5fab4fe746cebc384ce3ca195d1127f7' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_unnamed_2079@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-03-29 09:25:03.779 ***🔗
bob_unnamed_2079@domain.example.com/res1 out
<iq type='set' id='4cde07722aa34fce1cd9644a99a3b3ab'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-29 09:25:03.779 ***🔗
bob_unnamed_2079@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_unnamed_2079@domain.example.com/res1' id='4cde07722aa34fce1cd9644a99a3b3ab' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-29 09:25:03.780 ***🔗
bob_unnamed_2079@domain.example.com/res1 out
<presence/>



*** User 2024-03-29 09:25:03.783 ***🔗
bob_unnamed_2079@domain.example.com/res1 in
<presence from='bob_unnamed_2079@domain.example.com/res1' to='bob_unnamed_2079@domain.example.com/res1'/>



*** User 2024-03-29 09:25:03.784 ***🔗
alice_unnamed_2079@domain.example.com/res1 out
<presence to='alicE_unnamed_2079room0-48292-0@groupchats.domain.example.com/unique_alice_unnamed_2079_nickname'>
	<x xmlns='http://jabber.org/protocol/muc'/>
</presence>



*** User 2024-03-29 09:25:03.784 ***🔗
bob_unnamed_2079@domain.example.com/res1 out
<presence to='alicE_unnamed_2079room0-48292-0@groupchats.domain.example.com/unique_bob_unnamed_2079_nickname'>
	<x xmlns='http://jabber.org/protocol/muc'/>
</presence>



*** User 2024-03-29 09:25:03.784 ***🔗
alice_unnamed_2079@domain.example.com/res1 out
<message type='groupchat' to='alicE_unnamed_2079room0-48292-0@groupchats.domain.example.com'>
	<body>Hi, Bob!</body>
</message>



*** User 2024-03-29 09:25:03.796 ***🔗
bob_unnamed_2079@domain.example.com/res1 in
<presence from='alice_unnamed_2079room0-48292-0@groupchats.domain.example.com/unique_bob_unnamed_2079_nickname' to='bob_unnamed_2079@domain.example.com/res1'>
	<x xmlns='http://jabber.org/protocol/muc'>
		<item jid='bob_unnamed_2079@domain.example.com/res1' affiliation='none' role='participant'/>
		<status code='110'/>
		<status code='100'/>
		<status code='201'/>
	</x>
</presence>



*** User 2024-03-29 09:25:03.796 ***🔗
bob_unnamed_2079@domain.example.com/res1 in
<message from='alice_unnamed_2079room0-48292-0@groupchats.domain.example.com' to='bob_unnamed_2079@domain.example.com/res1' type='groupchat'>
	<subject/>
	<body/>
</message>


Could not find element archive_wait in Config.


*** User 2024-03-29 09:25:03.797 ***🔗
bob_unnamed_2079@domain.example.com/res1 in
<presence from='alice_unnamed_2079room0-48292-0@groupchats.domain.example.com/unique_alice_unnamed_2079_nickname' to='bob_unnamed_2079@domain.example.com/res1'>
	<x xmlns='http://jabber.org/protocol/muc'>
		<item jid='alice_unnamed_2079@domain.example.com/res1' affiliation='owner' role='moderator'/>
	</x>
</presence>



*** User 2024-03-29 09:25:03.866 ***🔗
bob_unnamed_2079@domain.example.com/res1 in
<message from='alice_unnamed_2079room0-48292-0@groupchats.domain.example.com/unique_alice_unnamed_2079_nickname' to='bob_unnamed_2079@domain.example.com/res1' type='groupchat'>
	<body>Hi, Bob!</body>
	<stanza-id by='alice_unnamed_2079room0-48292-0@groupchats.domain.example.com' id='C5696RKO4V01' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-03-29 09:25:03.884 ***🔗
Matching events: [{{mod_mam_muc_archive_message,
                    #{host_type => <<"test type">>}},
                   #{count => 1,time => 11122,
                     params =>
                      #{packet =>
                         {xmlel,<<"message">>,
                          [{<<"type">>,<<"groupchat">>},
                           {<<"to">>,
                            <<"alicE_unnamed_2079room0-48292-0@groupchats.domain.example.com">>}],
                          [{xmlel,<<"body">>,[],[{xmlcdata,<<"Hi, Bob!">>}]},
                           {xmlel,<<"x">>,
                            [{<<"xmlns">>,
                              <<"http://jabber.org/protocol/muc#user">>}],
                            [{xmlel,<<"item">>,
                              [{<<"affiliation">>,<<"owner">>},
                               {<<"jid">>,
                                <<"alice_unnamed_2079@domain.example.com/res1">>},
                               {<<"role">>,<<"moderator">>}],
                              []}]}]},
                        direction => incoming,
                        message_id => 438196301444840449,archive_id => 884,
                        local_jid =>
                         {jid,<<"alice_unnamed_2079room0-48292-0">>,
                          <<"groupchats.domain.example.com">>,<<>>},
                        remote_jid =>
                         {jid,<<"alice_unnamed_2079">>,
                          <<"domain.example.com">>,<<"res1">>},
                        source_jid =>
                         {jid,<<"alice_unnamed_2079room0-48292-0">>,
                          <<"groupchats.domain.example.com">>,
                          <<"unique_alice_unnamed_2079_nickname">>},
                        origin_id => none}}}]

*** User 2024-03-29 09:25:03.900 ***🔗
Matching events: [{{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 5152,time_per_message => 5152}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 5325,time_per_message => 5325}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 3845,time_per_message => 3845}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 3186,time_per_message => 3186}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 2465,time_per_message => 2465}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 4471,time_per_message => 4471}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 44339,time_per_message => 44339}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 1772,time_per_message => 1772}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 4122,time_per_message => 4122}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 3820,time_per_message => 3820}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 2065,time_per_message => 2065}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 6651,time_per_message => 6651}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 7613,time_per_message => 7613}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 9677,time_per_message => 9677}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 6184,time_per_message => 6184}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 9627,time_per_message => 9627}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 4953,time_per_message => 4953}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 1815,time_per_message => 1815}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 6402,time_per_message => 6402}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 2439,time_per_message => 2439}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 2326,time_per_message => 2326}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 2,time => 4573,time_per_message => 2287}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 16222,time_per_message => 16222}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 4876,time_per_message => 4876}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 4679,time_per_message => 4679}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 7273,time_per_message => 7273}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 1546,time_per_message => 1546}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 2,time => 3030,time_per_message => 1515}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 1758,time_per_message => 1758}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 36252,time_per_message => 36252}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 36894,time_per_message => 36894}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 38017,time_per_message => 38017}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 2653,time_per_message => 2653}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 1751,time_per_message => 1751}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 11155,time_per_message => 11155}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 10416,time_per_message => 10416}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 13095,time_per_message => 13095}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 3132,time_per_message => 3132}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 2762,time_per_message => 2762}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 1179,time_per_message => 1179}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 2671,time_per_message => 2671}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 2820,time_per_message => 2820}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 1762,time_per_message => 1762}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 1462,time_per_message => 1462}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 1130,time_per_message => 1130}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 1827,time_per_message => 1827}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 2989,time_per_message => 2989}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 4186,time_per_message => 4186}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 2860,time_per_message => 2860}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 1754,time_per_message => 1754}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 3533,time_per_message => 3533}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 26094,time_per_message => 26094}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 2,time => 7066,time_per_message => 3533}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 2,time => 5157,time_per_message => 2579}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 10260,time_per_message => 10260}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 4475,time_per_message => 4475}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 2849,time_per_message => 2849}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 23246,time_per_message => 23246}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 19627,time_per_message => 19627}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 4,time => 39857,time_per_message => 9964}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 1972,time_per_message => 1972}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 4150,time_per_message => 4150}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 5595,time_per_message => 5595}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 1851,time_per_message => 1851}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 2,time => 6560,time_per_message => 3280}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 1510,time_per_message => 1510}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 2,time => 11173,time_per_message => 5587}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 6,time => 31819,time_per_message => 5303}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 3,time => 3739,time_per_message => 1246}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 1141,time_per_message => 1141}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 2184,time_per_message => 2184}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 2388,time_per_message => 2388}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 4641,time_per_message => 4641}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 20414,time_per_message => 20414}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 20953,time_per_message => 20953}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 6845,time_per_message => 6845}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 27739,time_per_message => 27739}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 9759,time_per_message => 9759}}]

*** User 2024-03-29 09:25:03.963 ***🔗
Matching events: [{{mod_mam_muc_remove_archive,
                       #{host_type => <<"test type">>}},
                   #{count => 1,
                     jid =>
                         {jid,<<"alice_unnamed_2079room0-48292-0">>,
                             <<"groupchats.domain.example.com">>,<<>>}}}]

*** User 2024-03-29 09:25:03.964 ***🔗
bob_unnamed_2079@domain.example.com/res1 out
</stream:stream>

*** User 2024-03-29 09:25:03.965 ***🔗
bob_unnamed_2079@domain.example.com/res1 in
</stream:stream>

*** User 2024-03-29 09:25:03.965 ***🔗
alice_unnamed_2079@domain.example.com/res1 out
</stream:stream>

*** User 2024-03-29 09:25:03.966 ***🔗
alice_unnamed_2079@domain.example.com/res1 in
</stream:stream>

*** User 2024-03-29 09:25:04.083 ***🔗
waiting for room_archive_size is done in 0 miliseconds
*** CT 2024-03-29 09:25:04.169 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_3296.html



=== Ended at 2024-03-29 09:25:04
=== successfully completed test case
=== === Returned value: ok