From 0bf93eefcb09af58baf04dd1b6b81d7383674f37 Mon Sep 17 00:00:00 2001 From: Badlop Date: Mon, 13 Aug 2018 15:26:40 +0200 Subject: [PATCH] Try to update tests to handle recent MUC subscriptions change (#2272) --- test/muc_tests.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/muc_tests.erl b/test/muc_tests.erl index 6e9e06759..8cc9e8dcb 100644 --- a/test/muc_tests.erl +++ b/test/muc_tests.erl @@ -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),