diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2013-06-15 23:39:20 +1000 |
---|---|---|
committer | Alexey Shchepin <alexey@process-one.net> | 2013-06-17 16:10:43 +0300 |
commit | 831dc1f253bab958a7522eb5207f3cfc0cf7a24c (patch) | |
tree | 9e02d7d630449317a16f3b7dbaff3c18bdd0159b /test | |
parent | Add roster checks (diff) |
Check item groups separately
Diffstat (limited to 'test')
-rw-r--r-- | test/ejabberd_SUITE.erl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/ejabberd_SUITE.erl b/test/ejabberd_SUITE.erl index 58a4f1a4..e6bf05b8 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) -> |