diff --git a/models/issues/comment_test.go b/models/issues/comment_test.go index c08e3b970d3..610a75aea60 100644 --- a/models/issues/comment_test.go +++ b/models/issues/comment_test.go @@ -50,7 +50,9 @@ func Test_UpdateCommentAttachment(t *testing.T) { comment := unittest.AssertExistsAndLoadBean(t, &issues_model.Comment{ID: 1}) attachment := repo_model.Attachment{ - Name: "test.txt", + Name: "test.txt", + Status: db.FileStatusNormal, + UUID: "test-uuid", } assert.NoError(t, db.Insert(db.DefaultContext, &attachment))