From 3c8ff9d91c80dfb0d722e31f68d288f5355004c8 Mon Sep 17 00:00:00 2001 From: 6543 <6543@noreply.gitea.io> Date: Tue, 6 Oct 2020 21:15:19 +0000 Subject: [PATCH] Update Default Settings for Tests (#435) Update Default Settings for Tests Co-authored-by: 6543 <6543@obermui.de> Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/435 Reviewed-by: techknowlogick Reviewed-by: Andrew Thornton --- gitea/settings_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitea/settings_test.go b/gitea/settings_test.go index 3fecbd0..9a135be 100644 --- a/gitea/settings_test.go +++ b/gitea/settings_test.go @@ -40,7 +40,7 @@ func TestGetGlobalSettings(t *testing.T) { assert.NoError(t, err) assert.EqualValues(t, &GlobalAttachmentSettings{ Enabled: true, - AllowedTypes: "image/jpeg,image/png,application/zip,application/gzip", + AllowedTypes: ".docx,.gif,.gz,.jpeg,.jpg,.log,.pdf,.png,.pptx,.txt,.xlsx,.zip", MaxSize: 4, MaxFiles: 5, }, attachSettings)