Skip to content

Commit 05f6e61

Browse files
committed
Update consistency.go
1 parent e38b875 commit 05f6e61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/unittest/consistency.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ func init() {
182182
checkForConversationConsistency := func(t assert.TestingT, bean any) {
183183
conversation := reflectionWrap(bean)
184184
typeComment := modelsCommentTypeComment
185-
actual := GetCountByCond(t, "comment", builder.Eq{"`type`": typeComment, "conversation_id": conversation.int("ID")})
185+
actual := GetCountByCond(t, "conversation_comment", builder.Eq{"`type`": typeComment, "conversation_id": conversation.int("ID")})
186186
assert.EqualValues(t, conversation.int("NumComments"), actual, "Unexpected number of comments for issue id: %d", conversation.int("ID"))
187187
}
188188

0 commit comments

Comments
 (0)