25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +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,
from = JID,
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),
send(Config, #iq{type = result, id = IQ#iq.id,
to = JID, sub_els = [Info]}),