diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2016-05-06 16:37:17 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2016-05-06 16:37:17 +0200 |
commit | bcf07fd032fa8534d8dc4b43f3cda1897b7dafc9 (patch) | |
tree | 41145b644f957abdc1891b3c8ba53e1b3669bc9e /test/ejabberd_SUITE.erl | |
parent | XEP-0198: Use different error message for bounces (diff) |
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.
Diffstat (limited to 'test/ejabberd_SUITE.erl')
-rw-r--r-- | test/ejabberd_SUITE.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ejabberd_SUITE.erl b/test/ejabberd_SUITE.erl index 3edbf587..aa465fb6 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}), |