This commit is contained in:
Lunny Xiao 2025-07-20 17:36:19 -07:00
parent ccb8c9b770
commit 8f8dd8cae1
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -50,7 +50,9 @@ func Test_UpdateCommentAttachment(t *testing.T) {
comment := unittest.AssertExistsAndLoadBean(t, &issues_model.Comment{ID: 1}) comment := unittest.AssertExistsAndLoadBean(t, &issues_model.Comment{ID: 1})
attachment := repo_model.Attachment{ attachment := repo_model.Attachment{
Name: "test.txt", Name: "test.txt",
Status: db.FileStatusNormal,
UUID: "test-uuid",
} }
assert.NoError(t, db.Insert(db.DefaultContext, &attachment)) assert.NoError(t, db.Insert(db.DefaultContext, &attachment))