summaryrefslogtreecommitdiffstats
path: root/modules/avatar
diff options
context:
space:
mode:
Diffstat (limited to 'modules/avatar')
-rw-r--r--modules/avatar/avatar_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/avatar/avatar_test.go b/modules/avatar/avatar_test.go
index b958a9e236..a2acc54438 100644
--- a/modules/avatar/avatar_test.go
+++ b/modules/avatar/avatar_test.go
@@ -61,6 +61,7 @@ func Test_PrepareWithInvalidImage(t *testing.T) {
_, err := Prepare([]byte{})
assert.EqualError(t, err, "DecodeConfig: image: unknown format")
}
+
func Test_PrepareWithInvalidImageSize(t *testing.T) {
setting.Avatar.MaxWidth = 5
setting.Avatar.MaxHeight = 5