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
1 changed files with 2 additions and 1 deletions

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]}),