25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

Fix race in CSI test case

This commit is contained in:
Evgeniy Khramtsov 2014-10-31 00:26:22 +03:00
parent 9a0b951855
commit dfb21e802e

View File

@ -1583,7 +1583,7 @@ client_state_slave(Config) ->
Peer = ?config(master, Config), Peer = ?config(master, Config),
send(Config, #csi{type = inactive}), send(Config, #csi{type = inactive}),
wait_for_master(Config), wait_for_master(Config),
#presence{from = Peer, sub_els = [#delay{}]} = recv(), #presence{from = Peer, sub_els = [#vcard_xupdate{}|_]} = recv(),
#message{from = Peer, thread = <<"1">>, sub_els = [#chatstate{type = active}], #message{from = Peer, thread = <<"1">>, sub_els = [#chatstate{type = active}],
body = [#text{data = <<"body">>}]} = recv(), body = [#text{data = <<"body">>}]} = recv(),
wait_for_master(Config), wait_for_master(Config),