Skip to content

Commit

Permalink
update conversation fixture comment amount
Browse files Browse the repository at this point in the history
  • Loading branch information
RedCocoon committed Nov 7, 2024
1 parent 05f6e61 commit dda6b57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/fixtures/conversation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
created_unix: 946684810
id: 2
index: 2
num_comments: 0
num_comments: 1
repo_id: 1
updated_unix: 978307190
-
Expand Down
2 changes: 1 addition & 1 deletion models/unittest/consistency.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dda6b57

Please sign in to comment.