0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-02-01 07:32:58 +01:00
This commit is contained in:
Lunny Xiao 2025-07-20 13:15:26 -07:00
parent 98290c69e9
commit 840a5cadfc
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -39,9 +39,8 @@ func TestPullRequestList_LoadReviewCommentsCounts(t *testing.T) {
reviewComments, err := prs.LoadReviewCommentsCounts(db.DefaultContext)
assert.NoError(t, err)
assert.Len(t, reviewComments, 2)
for _, pr := range prs {
assert.Equal(t, 1, reviewComments[pr.IssueID])
}
assert.Equal(t, 1, reviewComments[prs[0].IssueID])
assert.Equal(t, 2, reviewComments[prs[1].IssueID])
}
func TestPullRequestList_LoadReviews(t *testing.T) {