Skip to content

Commit 8f8dd8c

Browse files
committed
Fix test
1 parent ccb8c9b commit 8f8dd8c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

models/issues/comment_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ func Test_UpdateCommentAttachment(t *testing.T) {
5050

5151
comment := unittest.AssertExistsAndLoadBean(t, &issues_model.Comment{ID: 1})
5252
attachment := repo_model.Attachment{
53-
Name: "test.txt",
53+
Name: "test.txt",
54+
Status: db.FileStatusNormal,
55+
UUID: "test-uuid",
5456
}
5557
assert.NoError(t, db.Insert(db.DefaultContext, &attachment))
5658

0 commit comments

Comments
 (0)