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

Make sure that server processed our inactive request before processing further in testing

This commit is contained in:
Paweł Chmielowski 2015-02-19 12:28:31 +01:00 committed by Paweł Chmielowski
parent 31c5775025
commit 63d6d68979

View File

@ -1594,6 +1594,9 @@ client_state_slave(Config) ->
true = ?config(csi, Config),
Peer = ?config(master, Config),
send(Config, #csi{type = inactive}),
send_recv(
Config,
#iq{type = get, sub_els = [#ping{}], to = server_jid(Config)}),
wait_for_master(Config),
?recv1(#presence{from = Peer, sub_els = [#vcard_xupdate{}|_]}),
?recv1(#message{from = Peer, thread = <<"1">>, sub_els = [#chatstate{type = active}],