mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
Test: Check that the message we get is the welcome message, not other
This commit is contained in:
parent
e1b94487ef
commit
cdaf45f91c
1 changed files with 2 additions and 1 deletions
|
@ -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]}),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue