update conversation fixture comment amount

This commit is contained in:
RedCocoon 2024-11-08 00:06:28 +08:00
parent 05f6e61de8
commit dda6b57c95
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
created_unix: 946684810
id: 2
index: 2
num_comments: 0
num_comments: 1
repo_id: 1
updated_unix: 978307190
-

View File

@ -183,7 +183,7 @@ func init() {
conversation := reflectionWrap(bean)
typeComment := modelsCommentTypeComment
actual := GetCountByCond(t, "conversation_comment", builder.Eq{"`type`": typeComment, "conversation_id": conversation.int("ID")})
assert.EqualValues(t, conversation.int("NumComments"), actual, "Unexpected number of comments for issue id: %d", conversation.int("ID"))
assert.EqualValues(t, conversation.int("NumComments"), actual, "Unexpected number of comments for conversation id: %d", conversation.int("ID"))
}
consistencyCheckMap["user"] = checkForUserConsistency