mirror of
https://github.com/go-gitea/gitea.git
synced 2025-02-26 07:47:25 +08:00
Update consistency.go
This commit is contained in:
parent
e38b87516f
commit
05f6e61de8
@ -182,7 +182,7 @@ func init() {
|
||||
checkForConversationConsistency := func(t assert.TestingT, bean any) {
|
||||
conversation := reflectionWrap(bean)
|
||||
typeComment := modelsCommentTypeComment
|
||||
actual := GetCountByCond(t, "comment", builder.Eq{"`type`": typeComment, "conversation_id": conversation.int("ID")})
|
||||
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"))
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user