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

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