]> granicus.if.org Git - ejabberd/commitdiff
Try to update tests to handle recent MUC subscriptions change (#2272)
authorBadlop <badlop@process-one.net>
Mon, 13 Aug 2018 13:26:40 +0000 (15:26 +0200)
committerBadlop <badlop@process-one.net>
Mon, 13 Aug 2018 13:26:40 +0000 (15:26 +0200)
test/muc_tests.erl

index 6e9e067597055a4828a7da8d41706ced2c2412eb..8cc9e8dcb4cda183109a4dfc3dcbdf26256c92ce 100644 (file)
@@ -235,7 +235,7 @@ service_subscriptions(Config) ->
     #iq{type = result, sub_els = [#muc_subscriptions{list = JIDs}]} =
        send_recv(Config, #iq{type = get, to = MUC,
                              sub_els = [#muc_subscriptions{}]}),
-    Rooms = lists:sort(JIDs),
+    Rooms = lists:sort([J || #muc_subscription{jid = J, events = []} <- Subs]),
     lists:foreach(
       fun(Room) ->
              ok = unsubscribe(Config, Room),