]> granicus.if.org Git - ejabberd/commitdiff
Update MAM tests to always expect RSM in response
authorHolger Weiss <holger@zedat.fu-berlin.de>
Sun, 30 Aug 2015 21:26:37 +0000 (23:26 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Sun, 30 Aug 2015 21:26:37 +0000 (23:26 +0200)
test/ejabberd_SUITE.erl

index 47c4b9e753a421818902838c14f4d10f83c9ea63..a220ed37e1964cb1a4945b9abd4d963457678ad8 100644 (file)
@@ -1688,7 +1688,8 @@ mam_query_all(Config, NS) ->
                                                body = [Text]}]}]}]})
       end, Iter),
     if NS == ?NS_MAM_TMP ->
-           ?recv1(#iq{type = result, id = I, sub_els = []});
+           ?recv1(#iq{type = result, id = I,
+                      sub_els = [#mam_query{xmlns = NS, id = QID}]});
        true ->
            ?recv1(#message{sub_els = [#mam_fin{complete = true, id = QID}]})
     end.
@@ -1724,7 +1725,8 @@ mam_query_with(Config, JID, NS) ->
                                                body = [Text]}]}]}]})
       end, Iter),
     if NS == ?NS_MAM_TMP ->
-           ?recv1(#iq{type = result, id = I, sub_els = []});
+           ?recv1(#iq{type = result, id = I,
+                      sub_els = [#mam_query{xmlns = NS}]});
        true ->
            ?recv1(#message{sub_els = [#mam_fin{complete = true}]})
     end.