25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Update MAM tests to always expect RSM in response

This commit is contained in:
Holger Weiss 2015-08-30 23:26:37 +02:00
parent 3ed75890cb
commit 9f62426343

View File

@ -1688,7 +1688,8 @@ mam_query_all(Config, NS) ->
body = [Text]}]}]}]}) body = [Text]}]}]}]})
end, Iter), end, Iter),
if NS == ?NS_MAM_TMP -> 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 -> true ->
?recv1(#message{sub_els = [#mam_fin{complete = true, id = QID}]}) ?recv1(#message{sub_els = [#mam_fin{complete = true, id = QID}]})
end. end.
@ -1724,7 +1725,8 @@ mam_query_with(Config, JID, NS) ->
body = [Text]}]}]}]}) body = [Text]}]}]}]})
end, Iter), end, Iter),
if NS == ?NS_MAM_TMP -> 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 -> true ->
?recv1(#message{sub_els = [#mam_fin{complete = true}]}) ?recv1(#message{sub_els = [#mam_fin{complete = true}]})
end. end.