mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
Make stop_ejabberd test also work without receiving </stream:stream>
This commit is contained in:
parent
1bd560f3f2
commit
a2e6d8bb6b
1 changed files with 8 additions and 1 deletions
|
@ -504,7 +504,14 @@ all() ->
|
||||||
stop_ejabberd(Config) ->
|
stop_ejabberd(Config) ->
|
||||||
ok = application:stop(ejabberd),
|
ok = application:stop(ejabberd),
|
||||||
?recv1(#stream_error{reason = 'system-shutdown'}),
|
?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.
|
Config.
|
||||||
|
|
||||||
test_connect_bad_xml(Config) ->
|
test_connect_bad_xml(Config) ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue