From 94c21f3149d150fbaeb6857fbb3de44165c4b554 Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Tue, 18 Jun 2013 22:31:19 +1000 Subject: [PATCH] Better handle incoming packets sequence --- test/ejabberd_SUITE.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/ejabberd_SUITE.erl b/test/ejabberd_SUITE.erl index 4e0413734..baa1e39f2 100644 --- a/test/ejabberd_SUITE.erl +++ b/test/ejabberd_SUITE.erl @@ -761,15 +761,15 @@ roster_remove_slave(Config) -> %% Remove the peer from roster. Item = #roster_item{jid = LPeer, subscription = remove}, I = send(Config, #iq{type = set, sub_els = [#roster{items = [Item]}]}), - {Push, _} = ?recv2( + {Push, _, _} = ?recv3( #iq{type = set, sub_els = [#roster{items = [#roster_item{ jid = LPeer, subscription = remove}]}]}, - #iq{type = result, id = I, sub_els = []}), + #iq{type = result, id = I, sub_els = []}, + #presence{type = unavailable, from = Peer}), send(Config, make_iq_result(Push)), - #presence{type = unavailable, from = Peer} = recv(), disconnect(Config). proxy65_master(Config) ->