aboutsummaryrefslogtreecommitdiffstats
path: root/services/attachment/attachment_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/attachment/attachment_test.go')
-rw-r--r--services/attachment/attachment_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/attachment/attachment_test.go b/services/attachment/attachment_test.go
index 77ef1cd37c..142bcfe629 100644
--- a/services/attachment/attachment_test.go
+++ b/services/attachment/attachment_test.go
@@ -32,7 +32,7 @@ func TestUploadAttachment(t *testing.T) {
assert.NoError(t, err)
defer f.Close()
- attach, err := NewAttachment(&repo_model.Attachment{
+ attach, err := NewAttachment(db.DefaultContext, &repo_model.Attachment{
RepoID: 1,
UploaderID: user.ID,
Name: filepath.Base(fPath),