]> granicus.if.org Git - ejabberd/commitdiff
upload_tests: Make size error check stricter
authorHolger Weiss <holger@zedat.fu-berlin.de>
Mon, 4 Jun 2018 21:29:24 +0000 (23:29 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Mon, 4 Jun 2018 21:29:24 +0000 (23:29 +0200)
test/upload_tests.erl

index fa6b04553ee1943fdf017cfd7dcd0b1ebc65ed9a..416719aa6c3b0f3f7caeec4845564d7a673511f4 100644 (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].