=== 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.48869.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},
                      backend => rdbms,send_message => mod_mam_utils,
                      muc => #{host => {prefix,<<"groupchats.">>}},
                      max_result_limit => 50,
                      async_writer =>
                          #{enabled => true,pool_size => 16,batch_size => 30,
                            flush_interval => 1},
                      is_archivable_message => mod_mam_utils,
                      archive_chat_markers => false,full_text_search => true,
                      message_retraction => true,default_result_limit => 50,
                      enforce_simple_queries => false,
                      no_stanzaid_element => false,user_prefs_store => rdbms,
                      cache_users => false}},
     {mod_offline_loaded,false},
     {escalus_user_db,{module,escalus_ejabberd}},
     {preset,"pgsql_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@62ff1c7eec89.2024-04-23_06.46.53/big_tests.tests.mam_SUITE.logs/run.2024-04-23_06.55.16/mam_suite.muc_archive_is_instrumented.43653.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@62ff1c7eec89.2024-04-23_06.46.53/big_tests.tests.mam_SUITE.logs/run.2024-04-23_06.55.16/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_muc =>
            #{access => muc,
              host => {prefix,<<"groupchats.">>},
              backend => rdbms,max_users => 200,room_shaper => none,
              http_auth_pool => none,hibernate_timeout => 2000,
              history_size => 20,hibernated_room_check_interval => 1000,
              hibernated_room_timeout => 2000,access_create => muc_create,
              access_admin => none,access_persistent => all,
              default_room =>
                  #{public => true,description => <<>>,persistent => false,
                    title => <<>>,password => <<>>,anonymous => true,
                    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,max_users => 200,
                    maygetmemberlist => [],logging => false,
                    affiliations => [],subject => <<>>,subject_author => <<>>},
              load_permanent_rooms_at_startup => false,
              max_room_id => infinity,online_backend => mnesia,
              min_presence_interval => 0,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},
        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_amp => #{},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        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_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              buffer_max => 100,ack_freq => 1,resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_carboncopy => #{iqdisc => no_queue},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2}}},
     {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@62ff1c7eec89.2024-04-23_06.46.53"

=== Started at 2024-04-23 06:55:46


*** CT 2024-04-23 06:55:46.198 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_3259.html

*** User 2024-04-23 06:55:46.329 ***🔗
alicE_unnamed_2051@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-04-23 06:55:46.330 ***🔗
alicE_unnamed_2051@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b1395e3cb6ce1900' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-23 06:55:46.330 ***🔗
alicE_unnamed_2051@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-04-23 06:55:46.330 ***🔗
alicE_unnamed_2051@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VubmFtZWRfMjA1MQBtYXR5Z3J5c2E=</auth>



*** User 2024-04-23 06:55:46.331 ***🔗
alicE_unnamed_2051@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 06:55:46.331 ***🔗
alicE_unnamed_2051@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-04-23 06:55:46.333 ***🔗
alicE_unnamed_2051@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4392dcc072527abf' from='domain.example.com' version='1.0' xml:lang='en' to='alice_unnamed_2051@domain.example.com'>

*** User 2024-04-23 06:55:46.333 ***🔗
alicE_unnamed_2051@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-04-23 06:55:46.333 ***🔗
alicE_unnamed_2051@domain.example.com/res1 out
<iq type='set' id='5a4cced4a9d5e05eb6313e306d72c5dc'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 06:55:46.334 ***🔗
alicE_unnamed_2051@domain.example.com/res1 in
<iq id='5a4cced4a9d5e05eb6313e306d72c5dc' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_unnamed_2051@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 06:55:46.334 ***🔗
alice_unnamed_2051@domain.example.com/res1 out
<iq type='set' id='a0f79c53d9c73f9896a58dbe90690ddc'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 06:55:46.335 ***🔗
alice_unnamed_2051@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_unnamed_2051@domain.example.com/res1' id='a0f79c53d9c73f9896a58dbe90690ddc' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 06:55:46.336 ***🔗
alice_unnamed_2051@domain.example.com/res1 out
<presence/>



*** User 2024-04-23 06:55:46.337 ***🔗
alice_unnamed_2051@domain.example.com/res1 in
<presence from='alice_unnamed_2051@domain.example.com/res1' to='alice_unnamed_2051@domain.example.com/res1'/>



*** User 2024-04-23 06:55:46.338 ***🔗
bOb_unnamed_2051@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-04-23 06:55:46.340 ***🔗
bOb_unnamed_2051@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='49ff604e5a95ee99' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-23 06:55:46.340 ***🔗
bOb_unnamed_2051@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-04-23 06:55:46.340 ***🔗
bOb_unnamed_2051@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl91bm5hbWVkXzIwNTEAbWFrcm9saWth</auth>



*** User 2024-04-23 06:55:46.341 ***🔗
bOb_unnamed_2051@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 06:55:46.342 ***🔗
bOb_unnamed_2051@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-04-23 06:55:46.342 ***🔗
bOb_unnamed_2051@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='94e322b404040e09' from='domain.example.com' version='1.0' xml:lang='en' to='bob_unnamed_2051@domain.example.com'>

*** User 2024-04-23 06:55:46.343 ***🔗
bOb_unnamed_2051@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-04-23 06:55:46.343 ***🔗
bOb_unnamed_2051@domain.example.com/res1 out
<iq type='set' id='cc56f6818de59c31fb550ec334120334'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 06:55:46.344 ***🔗
bOb_unnamed_2051@domain.example.com/res1 in
<iq id='cc56f6818de59c31fb550ec334120334' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_unnamed_2051@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 06:55:46.345 ***🔗
bob_unnamed_2051@domain.example.com/res1 out
<iq type='set' id='6ae99dc77c1cc385c4e4a9f143a88861'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 06:55:46.345 ***🔗
bob_unnamed_2051@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_unnamed_2051@domain.example.com/res1' id='6ae99dc77c1cc385c4e4a9f143a88861' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 06:55:46.347 ***🔗
bob_unnamed_2051@domain.example.com/res1 out
<presence/>



*** User 2024-04-23 06:55:46.401 ***🔗
bob_unnamed_2051@domain.example.com/res1 in
<presence from='bob_unnamed_2051@domain.example.com/res1' to='bob_unnamed_2051@domain.example.com/res1'/>



*** User 2024-04-23 06:55:46.402 ***🔗
alice_unnamed_2051@domain.example.com/res1 out
<presence to='alicE_unnamed_2051room0-48920-0@groupchats.domain.example.com/unique_alice_unnamed_2051_nickname'>
	<x xmlns='http://jabber.org/protocol/muc'/>
</presence>



*** User 2024-04-23 06:55:46.403 ***🔗
bob_unnamed_2051@domain.example.com/res1 out
<presence to='alicE_unnamed_2051room0-48920-0@groupchats.domain.example.com/unique_bob_unnamed_2051_nickname'>
	<x xmlns='http://jabber.org/protocol/muc'/>
</presence>



*** User 2024-04-23 06:55:46.403 ***🔗
alice_unnamed_2051@domain.example.com/res1 out
<message type='groupchat' to='alicE_unnamed_2051room0-48920-0@groupchats.domain.example.com'>
	<body>Hi, Bob!</body>
</message>



*** User 2024-04-23 06:55:46.406 ***🔗
bob_unnamed_2051@domain.example.com/res1 in
<presence from='alice_unnamed_2051room0-48920-0@groupchats.domain.example.com/unique_alice_unnamed_2051_nickname' to='bob_unnamed_2051@domain.example.com/res1'>
	<x xmlns='http://jabber.org/protocol/muc#user'>
		<item jid='alice_unnamed_2051@domain.example.com/res1' affiliation='owner' role='moderator'/>
	</x>
</presence>



*** User 2024-04-23 06:55:46.406 ***🔗
bob_unnamed_2051@domain.example.com/res1 in
<presence from='alice_unnamed_2051room0-48920-0@groupchats.domain.example.com/unique_bob_unnamed_2051_nickname' to='bob_unnamed_2051@domain.example.com/res1'>
	<x xmlns='http://jabber.org/protocol/muc'>
		<item jid='bob_unnamed_2051@domain.example.com/res1' affiliation='none' role='participant'/>
		<status code='110'/>
		<status code='100'/>
	</x>
</presence>



*** User 2024-04-23 06:55:46.407 ***🔗
bob_unnamed_2051@domain.example.com/res1 in
<message from='alice_unnamed_2051room0-48920-0@groupchats.domain.example.com' to='bob_unnamed_2051@domain.example.com/res1' type='groupchat'>
	<subject/>
	<body/>
</message>


Could not find element archive_wait in Config.


*** User 2024-04-23 06:55:46.408 ***🔗
bob_unnamed_2051@domain.example.com/res1 in
<message from='alice_unnamed_2051room0-48920-0@groupchats.domain.example.com/unique_alice_unnamed_2051_nickname' to='bob_unnamed_2051@domain.example.com/res1' type='groupchat'>
	<body>Hi, Bob!</body>
	<stanza-id by='alice_unnamed_2051room0-48920-0@groupchats.domain.example.com' id='C5LU1C7VHLG1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-04-23 06:55:46.423 ***🔗
Matching events: [{{mod_mam_muc_archive_message,
                    #{host_type => <<"test type">>}},
                   #{count => 1,time => 1349,
                     params =>
                      #{packet =>
                         {xmlel,<<"message">>,
                          [{<<"type">>,<<"groupchat">>},
                           {<<"to">>,
                            <<"alicE_unnamed_2051room0-48920-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_2051@domain.example.com/res1">>},
                               {<<"role">>,<<"moderator">>}],
                              []}]}]},
                        direction => incoming,archive_id => 909,
                        origin_id => none,message_id => 438746968437085697,
                        source_jid =>
                         {jid,<<"alice_unnamed_2051room0-48920-0">>,
                          <<"groupchats.domain.example.com">>,
                          <<"unique_alice_unnamed_2051_nickname">>},
                        remote_jid =>
                         {jid,<<"alice_unnamed_2051">>,
                          <<"domain.example.com">>,<<"res1">>},
                        local_jid =>
                         {jid,<<"alice_unnamed_2051room0-48920-0">>,
                          <<"groupchats.domain.example.com">>,<<>>}}}}]

*** User 2024-04-23 06:55:46.428 ***🔗
Matching events: [{{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 553,time_per_message => 553}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 2313,time_per_message => 2313}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 1182,time_per_message => 1182}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 1371,time_per_message => 1371}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 1262,time_per_message => 1262}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 1450,time_per_message => 1450}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 774,time_per_message => 774}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 2094,time_per_message => 2094}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 644,time_per_message => 644}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 1018,time_per_message => 1018}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 2,time => 1472,time_per_message => 736}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 945,time_per_message => 945}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 650,time_per_message => 650}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 3,time => 1763,time_per_message => 588}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 802,time_per_message => 802}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 2,time => 1266,time_per_message => 633}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 914,time_per_message => 914}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 2,time => 866,time_per_message => 433}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 2,time => 1712,time_per_message => 856}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 2,time => 1542,time_per_message => 771}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 3,time => 1823,time_per_message => 608}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 2,time => 1208,time_per_message => 604}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 2,time => 60043,time_per_message => 30022}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 965,time_per_message => 965}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 2,time => 1101,time_per_message => 551}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 3,time => 1484,time_per_message => 495}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 920,time_per_message => 920}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 2,time => 1558,time_per_message => 779}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 627,time_per_message => 627}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 720,time_per_message => 720}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 4,time => 2147,time_per_message => 537}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 3,time => 1470,time_per_message => 490}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 486,time_per_message => 486}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 600,time_per_message => 600}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 3,time => 1674,time_per_message => 558}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 4,time => 1624,time_per_message => 406}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 2,time => 1097,time_per_message => 549}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 929,time_per_message => 929}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 2,time => 1378,time_per_message => 689}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 3,time => 1388,time_per_message => 463}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 3,time => 1349,time_per_message => 450}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 3,time => 1468,time_per_message => 489}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 3,time => 1423,time_per_message => 474}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 683,time_per_message => 683}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 3,time => 1345,time_per_message => 448}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 551,time_per_message => 551}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 2,time => 887,time_per_message => 444}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 567,time_per_message => 567}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 2,time => 1291,time_per_message => 646}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 2,time => 1025,time_per_message => 513}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 2,time => 1701,time_per_message => 851}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 4,time => 1669,time_per_message => 417}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 3,time => 3203,time_per_message => 1068}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 5,time => 2732,time_per_message => 546}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 3,time => 2203,time_per_message => 734}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 3,time => 1834,time_per_message => 611}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 695,time_per_message => 695}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 3,time => 1909,time_per_message => 636}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 2,time => 1220,time_per_message => 610}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 3,time => 1935,time_per_message => 645}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 1448,time_per_message => 1448}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 2,time => 1546,time_per_message => 773}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 446,time_per_message => 446}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 434,time_per_message => 434}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 747,time_per_message => 747}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 448,time_per_message => 448}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 2003,time_per_message => 2003}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 2,time => 3006,time_per_message => 1503}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 1268,time_per_message => 1268}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 836,time_per_message => 836}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 1432,time_per_message => 1432}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 679,time_per_message => 679}},
                  {{mod_mam_muc_flushed,#{host_type => <<"test type">>}},
                   #{count => 1,time => 2023,time_per_message => 2023}}]

*** User 2024-04-23 06:55:46.435 ***🔗
Matching events: [{{mod_mam_muc_remove_archive,
                       #{host_type => <<"test type">>}},
                   #{count => 1,
                     jid =>
                         {jid,<<"alice_unnamed_2051room0-48920-0">>,
                             <<"groupchats.domain.example.com">>,<<>>}}}]

*** User 2024-04-23 06:55:46.436 ***🔗
bob_unnamed_2051@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-23 06:55:46.436 ***🔗
bob_unnamed_2051@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-23 06:55:46.437 ***🔗
alice_unnamed_2051@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-23 06:55:46.437 ***🔗
alice_unnamed_2051@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-23 06:55:46.516 ***🔗
waiting for room_archive_size is done in 0 miliseconds
*** CT 2024-04-23 06:55:46.540 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_3260.html



=== Ended at 2024-04-23 06:55:46
=== successfully completed test case
=== === Returned value: ok