From a2e6d8bb6b3e17206e8ad519ed833802fe3db41c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Wed, 1 Apr 2020 15:34:06 +0200 Subject: [PATCH] Make stop_ejabberd test also work without receiving --- test/ejabberd_SUITE.erl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/ejabberd_SUITE.erl b/test/ejabberd_SUITE.erl index ee19dd4b8..6658f6734 100644 --- a/test/ejabberd_SUITE.erl +++ b/test/ejabberd_SUITE.erl @@ -504,7 +504,14 @@ all() -> stop_ejabberd(Config) -> ok = application:stop(ejabberd), ?recv1(#stream_error{reason = 'system-shutdown'}), - ?recv1({xmlstreamend, <<"stream:stream">>}), + case suite:recv(Config) of + {xmlstreamend, <<"stream:stream">>} -> + ok; + closed -> + ok; + Other -> + suite:match_failure([Other], [closed]) + end, Config. test_connect_bad_xml(Config) ->