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

Fix test case for invalid language

This commit is contained in:
Evgeny Khramtsov 2018-11-23 14:11:14 +03:00
parent fcff3c60b1
commit a84be928ef

View File

@ -602,7 +602,7 @@ test_connect_bad_ns_stream(Config) ->
test_connect_bad_lang(Config) -> test_connect_bad_lang(Config) ->
Lang = iolist_to_binary(lists:duplicate(36, $x)), Lang = iolist_to_binary(lists:duplicate(36, $x)),
Config0 = init_stream(set_opt(lang, Lang, Config)), Config0 = init_stream(set_opt(lang, Lang, Config)),
?recv1(#stream_error{reason = 'policy-violation'}), ?recv1(#stream_error{reason = 'invalid-xml'}),
?recv1({xmlstreamend, <<"stream:stream">>}), ?recv1({xmlstreamend, <<"stream:stream">>}),
close_socket(Config0). close_socket(Config0).