From 05f6e61de851a9a9136ce64d41354560ebb60fdf Mon Sep 17 00:00:00 2001 From: RedCocoon Date: Thu, 7 Nov 2024 23:54:07 +0800 Subject: [PATCH] Update consistency.go --- models/unittest/consistency.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/unittest/consistency.go b/models/unittest/consistency.go index e750b0b0e98..188db2a081d 100644 --- a/models/unittest/consistency.go +++ b/models/unittest/consistency.go @@ -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")) }