mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-28 03:33:08 +08:00
update conversation fixture comment amount
This commit is contained in:
parent
05f6e61de8
commit
dda6b57c95
|
@ -9,7 +9,7 @@
|
|||
created_unix: 946684810
|
||||
id: 2
|
||||
index: 2
|
||||
num_comments: 0
|
||||
num_comments: 1
|
||||
repo_id: 1
|
||||
updated_unix: 978307190
|
||||
-
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user