25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-10-31 15:21:38 +01:00

upload_tests: Make size error check stricter

This commit is contained in:
Holger Weiss 2018-06-04 23:29:24 +02:00
parent a4049d9418
commit 8e1a13b259

View File

@ -195,7 +195,7 @@ check_size_error(IQErr, Size, NS) ->
FileTooLarge = xmpp:get_subtag(Err, #upload_file_too_large{xmlns = NS}), FileTooLarge = xmpp:get_subtag(Err, #upload_file_too_large{xmlns = NS}),
#stanza_error{reason = 'not-acceptable'} = Err, #stanza_error{reason = 'not-acceptable'} = Err,
#upload_file_too_large{'max-file-size' = MaxSize} = FileTooLarge, #upload_file_too_large{'max-file-size' = MaxSize} = FileTooLarge,
Size > MaxSize. true = Size > MaxSize.
namespaces() -> namespaces() ->
[?NS_HTTP_UPLOAD_0, ?NS_HTTP_UPLOAD, ?NS_HTTP_UPLOAD_OLD]. [?NS_HTTP_UPLOAD_0, ?NS_HTTP_UPLOAD, ?NS_HTTP_UPLOAD_OLD].