From 831dc1f253bab958a7522eb5207f3cfc0cf7a24c Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Sat, 15 Jun 2013 23:39:20 +1000 Subject: [PATCH] Check item groups separately --- test/ejabberd_SUITE.erl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/ejabberd_SUITE.erl b/test/ejabberd_SUITE.erl index 58a4f1a4c..e6bf05b84 100644 --- a/test/ejabberd_SUITE.erl +++ b/test/ejabberd_SUITE.erl @@ -645,7 +645,6 @@ roster_master(Config) -> sub_els = [#roster{items = [#roster_item{ jid = LPeer, - groups = Groups, subscription = both}]}]}, #iq{type = result, id = I1, sub_els = []}), send(Config, make_iq_result(Push5)), @@ -659,19 +658,21 @@ roster_master(Config) -> sub_els = [#roster{items = [#roster_item{ jid = LPeer, - groups = Groups, subscription = to}]}]}, #iq{type = set, sub_els = [#roster{items = [#roster_item{ jid = LPeer, - groups = Groups, subscription = none}]}]}, #presence{type = unsubscribe, from = LPeer}, #presence{type = unsubscribed, from = LPeer}, #presence{type = unavailable, from = Peer}), send(Config, make_iq_result(Push6)), send(Config, make_iq_result(Push7)), + #iq{sub_els = [#roster{items = [#roster_item{groups = G1}]}]} = Push5, + #iq{sub_els = [#roster{items = [#roster_item{groups = G2}]}]} = Push6, + #iq{sub_els = [#roster{items = [#roster_item{groups = G3}]}]} = Push7, + Groups = lists:sort(G1), Groups = lists:sort(G2), Groups = lists:sort(G3), disconnect(Config). roster_slave(Config) ->