=== Test case: inbox_SUITE:check_total_unread_count_when_there_are_no_active_conversations/1 (click for source code)

=== Config value:

    [{watchdog,<0.35319.0>},
     {inbox_opts,#{iqdisc => no_queue,backend => rdbms_async,
                   groupchat => [muclight],
                   max_result_limit => infinity,
                   reset_markers => [<<"displayed">>],
                   aff_changes => true,remove_on_kicked => true,
                   boxes => [<<"inbox">>,<<"archive">>,<<"bin">>,<<"other">>],
                   async_writer => #{pool_size => 1},
                   delete_domain_limit => infinity,bin_ttl => 30,
                   bin_clean_after => 3600000}},
     {preset,"pgsql_cets"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/inbox_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@df27fc96a068.2024-04-23_10.53.32/big_tests.tests.inbox_SUITE.logs/run.2024-04-23_10.59.55/inbox_suite.check_total_unread_count_when_there_are_no_active_conversations.99842.html"},
     {tc_group_properties,[{name,one_to_one},parallel]},
     {tc_group_path,[[{name,async_pools}]]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/inbox_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@df27fc96a068.2024-04-23_10.53.32/big_tests.tests.inbox_SUITE.logs/run.2024-04-23_10.59.55/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{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_sic => #{iqdisc => one_queue},
        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_amp => #{},mod_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => cets,
              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 => cets,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}}},
     {{saved_modules,mongooseim@localhost,<<"localhost.bis">>},
      #{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_sic => #{iqdisc => one_queue},
        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_amp => #{},mod_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => cets,
              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 => cets,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}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@df27fc96a068.2024-04-23_10.53.32"

=== Started at 2024-04-23 10:59:59


*** CT 2024-04-23 10:59:59.738 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_1776.html

*** User 2024-04-23 10:59:59.774 ***🔗
kate_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-23 10:59:59.774 ***🔗
kate_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='718f330ce6ef59f1' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 10:59:59.774 ***🔗
kate_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/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 10:59:59.774 ***🔗
kate_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfY2hlY2tfdG90YWxfdW5yZWFkX2NvdW50X3doZW5fdGhlcmVfYXJlX25vX2FjdGl2ZV9jb252ZXJzYXRpb25zXzE0OTEAbWFrcm93ZTtw</auth>



*** User 2024-04-23 10:59:59.775 ***🔗
kate_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 10:59:59.775 ***🔗
kate_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-23 10:59:59.776 ***🔗
kate_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c65437fce724efca' from='localhost' version='1.0' xml:lang='en' to='kate_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost'>

*** User 2024-04-23 10:59:59.776 ***🔗
kate_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/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 10:59:59.776 ***🔗
kate_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 out
<iq type='set' id='bce35fe3e3f2ae753c26a2a25e6e290d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 10:59:59.777 ***🔗
kate_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 in
<iq id='bce35fe3e3f2ae753c26a2a25e6e290d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 10:59:59.777 ***🔗
kate_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 out
<iq type='set' id='e8307bfa71963087c08cadade0bb043e'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 10:59:59.778 ***🔗
kate_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 in
<iq from='localhost' to='kate_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1' id='e8307bfa71963087c08cadade0bb043e' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 10:59:59.778 ***🔗
kate_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 out
<presence/>



*** User 2024-04-23 10:59:59.791 ***🔗
kate_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 in
<presence from='kate_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1' to='kate_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1'/>



*** User 2024-04-23 10:59:59.791 ***🔗
mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-23 10:59:59.792 ***🔗
mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2d8ed7c0f17934fe' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 10:59:59.792 ***🔗
mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/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 10:59:59.792 ***🔗
mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfY2hlY2tfdG90YWxfdW5yZWFkX2NvdW50X3doZW5fdGhlcmVfYXJlX25vX2FjdGl2ZV9jb252ZXJzYXRpb25zXzE0OTEAbmljbmllbWE=</auth>



*** User 2024-04-23 10:59:59.793 ***🔗
mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 10:59:59.793 ***🔗
mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-23 10:59:59.794 ***🔗
mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dfc03249d3d34a26' from='localhost' version='1.0' xml:lang='en' to='mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost'>

*** User 2024-04-23 10:59:59.794 ***🔗
mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/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 10:59:59.794 ***🔗
mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 out
<iq type='set' id='320bf71f5f2b94b2730ed37d3f24e53d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 10:59:59.794 ***🔗
mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 in
<iq id='320bf71f5f2b94b2730ed37d3f24e53d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 10:59:59.794 ***🔗
mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 out
<iq type='set' id='1a631292c9e56122111181cc06dbed62'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 10:59:59.795 ***🔗
mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 in
<iq from='localhost' to='mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1' id='1a631292c9e56122111181cc06dbed62' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 10:59:59.795 ***🔗
mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 out
<presence/>



*** User 2024-04-23 10:59:59.810 ***🔗
mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 in
<presence from='mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1' to='mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1'/>



*** User 2024-04-23 10:59:59.810 ***🔗
kate_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 out
<message type='chat' to='mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1' id='fcd631bde766c77ab62556fa5703dee8'>
	<body>Test</body>
</message>



*** User 2024-04-23 10:59:59.812 ***🔗
mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 in
<message from='kate_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1' to='mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1' type='chat' id='fcd631bde766c77ab62556fa5703dee8'>
	<body>Test</body>
</message>



*** User 2024-04-23 10:59:59.812 ***🔗
mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 out
<message to='kate_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1'>
	<displayed xmlns='urn:xmpp:chat-markers:0' id='fcd631bde766c77ab62556fa5703dee8'/>
</message>



*** User 2024-04-23 10:59:59.812 ***🔗
mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 out
<iq type='set' id='be4046c094a06f6fc89fb1215a77d2a1'>
	<inbox xmlns='erlang-solutions.com:xmpp:inbox:0'>
		<x xmlns='jabber:x:data' type='submit'>
			<field type='hidden' var='FORM_TYPE'>
				<value>erlang-solutions.com:xmpp:inbox:0</value>
			</field>
			<field type='text-single' var='hidden_read'>
				<value>false</value>
			</field>
		</x>
	</inbox>
</iq>



*** User 2024-04-23 10:59:59.813 ***🔗
mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 in
<iq from='mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost' to='mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1' id='be4046c094a06f6fc89fb1215a77d2a1' type='result'>
	<fin xmlns='erlang-solutions.com:xmpp:inbox:0'>
		<set xmlns='http://jabber.org/protocol/rsm'/>
		<active-conversations>0</active-conversations>
		<count>0</count>
		<unread-messages>0</unread-messages>
	</fin>
</iq>



*** User 2024-04-23 10:59:59.914 ***🔗
mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 out
<iq type='set' id='be4046c094a06f6fc89fb1215a77d2a1'>
	<inbox xmlns='erlang-solutions.com:xmpp:inbox:0'>
		<x xmlns='jabber:x:data' type='submit'>
			<field type='hidden' var='FORM_TYPE'>
				<value>erlang-solutions.com:xmpp:inbox:0</value>
			</field>
			<field type='text-single' var='hidden_read'>
				<value>false</value>
			</field>
		</x>
	</inbox>
</iq>



*** User 2024-04-23 10:59:59.915 ***🔗
mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 in
<message from='mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost' to='mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1' id='1713-869999-914939'>
	<result xmlns='erlang-solutions.com:xmpp:inbox:0' unread='0' queryid='be4046c094a06f6fc89fb1215a77d2a1'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2024-04-23T10:59:59.810803Z'/>
			<message from='kate_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1' type='chat' to='mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1' id='fcd631bde766c77ab62556fa5703dee8'>
				<body>Test</body>
			</message>
		</forwarded>
		<read>true</read>
		<box>inbox</box>
		<archive>false</archive>
		<mute>0</mute>
	</result>
</message>



*** User 2024-04-23 10:59:59.915 ***🔗
mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 in
<iq from='mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost' to='mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1' id='be4046c094a06f6fc89fb1215a77d2a1' type='result'>
	<fin xmlns='erlang-solutions.com:xmpp:inbox:0'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first>1713869999810803/a2F0ZV9jaGVja190b3RhbF91bnJlYWRfY291bnRfd2hlbl90aGVyZV9hcmVfbm9fYWN0aXZlX2NvbnZlcnNhdGlvbnNfMTQ5MUBsb2NhbGhvc3Q=</first>
			<last>1713869999810803/a2F0ZV9jaGVja190b3RhbF91bnJlYWRfY291bnRfd2hlbl90aGVyZV9hcmVfbm9fYWN0aXZlX2NvbnZlcnNhdGlvbnNfMTQ5MUBsb2NhbGhvc3Q=</last>
		</set>
		<active-conversations>0</active-conversations>
		<count>1</count>
		<unread-messages>0</unread-messages>
	</fin>
</iq>



*** User 2024-04-23 10:59:59.915 ***🔗
waiting for inbox_size is done in 100 miliseconds

*** User 2024-04-23 10:59:59.915 ***🔗
mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 out
</stream:stream>

*** User 2024-04-23 10:59:59.916 ***🔗
mike_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 in
</stream:stream>

*** User 2024-04-23 10:59:59.916 ***🔗
kate_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 out
</stream:stream>

*** User 2024-04-23 10:59:59.916 ***🔗
kate_check_total_unread_count_when_there_are_no_active_conversations_1491@localhost/res1 in
</stream:stream>
*** CT 2024-04-23 10:59:59.918 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_1776.html



=== Ended at 2024-04-23 10:59:59
=== successfully completed test case
=== === Returned value: ok