25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Test: Check that the message we get is the welcome message, not other

This commit is contained in:
Badlop 2024-01-09 16:08:57 +01:00
parent e1b94487ef
commit cdaf45f91c

View File

@ -897,7 +897,8 @@ presence_broadcast(Config) ->
IQ = #iq{type = get, IQ = #iq{type = get,
from = JID, from = JID,
sub_els = [#disco_info{node = Node}]} = recv_iq(Config), sub_els = [#disco_info{node = Node}]} = recv_iq(Config),
#message{type = normal} = recv_message(Config), #message{type = normal,
subject = [#text{lang = <<"en">>,data = <<"Welcome!">>}]} = recv_message(Config),
#presence{from = JID, to = JID} = recv_presence(Config), #presence{from = JID, to = JID} = recv_presence(Config),
send(Config, #iq{type = result, id = IQ#iq.id, send(Config, #iq{type = result, id = IQ#iq.id,
to = JID, sub_els = [Info]}), to = JID, sub_els = [Info]}),