diff --git a/models/fixtures/conversation.yml b/models/fixtures/conversation.yml index 112cbd5c3f..6bc1361ad7 100644 --- a/models/fixtures/conversation.yml +++ b/models/fixtures/conversation.yml @@ -9,7 +9,7 @@ created_unix: 946684810 id: 2 index: 2 - num_comments: 0 + num_comments: 1 repo_id: 1 updated_unix: 978307190 - diff --git a/models/unittest/consistency.go b/models/unittest/consistency.go index 188db2a081..0ecb836565 100644 --- a/models/unittest/consistency.go +++ b/models/unittest/consistency.go @@ -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