mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Update MAM tests to always expect RSM in response
This commit is contained in:
parent
3ed75890cb
commit
9f62426343
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user