From: Holger Weiss Date: Fri, 6 May 2016 14:37:17 +0000 (+0200) Subject: Avoid error bounces when testing stream management X-Git-Tag: 16.06~98 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bcf07fd032fa8534d8dc4b43f3cda1897b7dafc9;p=ejabberd Avoid error bounces when testing stream management The test suite sends messages to the server JID while checking whether the stream management code counts outgoing stanzas correctly. We now set type='headline' for those messages to avoid error bounces. --- diff --git a/test/ejabberd_SUITE.erl b/test/ejabberd_SUITE.erl index 3edbf5879..aa465fb66 100644 --- a/test/ejabberd_SUITE.erl +++ b/test/ejabberd_SUITE.erl @@ -607,7 +607,9 @@ disco(Config) -> sm(Config) -> Server = ?config(server, Config), ServerJID = jid:make(<<"">>, Server, <<"">>), - Msg = #message{to = ServerJID, body = [#text{data = <<"body">>}]}, + %% Send messages of type 'headline' so the server discards them silently + Msg = #message{to = ServerJID, type = headline, + body = [#text{data = <<"body">>}]}, true = ?config(sm, Config), %% Enable the session management with resumption enabled send(Config, #sm_enable{resume = true, xmlns = ?NS_STREAM_MGMT_3}),