25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Make stop_ejabberd test also work without receiving </stream:stream>

This commit is contained in:
Paweł Chmielowski 2020-04-01 15:34:06 +02:00
parent 1bd560f3f2
commit a2e6d8bb6b

View File

@ -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) ->