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
1 changed files with 1 additions and 1 deletions

View File

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