From bcf07fd032fa8534d8dc4b43f3cda1897b7dafc9 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Fri, 6 May 2016 16:37:17 +0200 Subject: [PATCH] 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. --- test/ejabberd_SUITE.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}), -- 2.40.0