summaryrefslogtreecommitdiffstats
path: root/integrations
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-04-03 17:19:59 +0100
committerGitHub <noreply@github.com>2021-04-03 18:19:59 +0200
commit0bb8bd8190a7c3ec84b934642607e24058145b9e (patch)
treea26069b2548e053ef91f384697f8ff9cfb11a1c2 /integrations
parent3cc7d27b6f23628e1ecc9ac1e5f61728be73da76 (diff)
downloadgitea-0bb8bd8190a7c3ec84b934642607e24058145b9e.tar.gz
gitea-0bb8bd8190a7c3ec84b934642607e24058145b9e.zip
Add size to Save function (#15264)
Fix #15253 Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'integrations')
-rw-r--r--integrations/attachment_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/integrations/attachment_test.go b/integrations/attachment_test.go
index a28e38b990..052f27605a 100644
--- a/integrations/attachment_test.go
+++ b/integrations/attachment_test.go
@@ -122,7 +122,7 @@ func TestGetAttachment(t *testing.T) {
t.Run(tc.name, func(t *testing.T) {
//Write empty file to be available for response
if tc.createFile {
- _, err := storage.Attachments.Save(models.AttachmentRelativePath(tc.uuid), strings.NewReader("hello world"))
+ _, err := storage.Attachments.Save(models.AttachmentRelativePath(tc.uuid), strings.NewReader("hello world"), -1)
assert.NoError(t, err)
}
//Actual test