From 8f8dd8cae1c058b194e929e8841d5248abbf47c6 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sun, 20 Jul 2025 17:36:19 -0700 Subject: [PATCH] Fix test --- models/issues/comment_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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))