mirror of
https://github.com/go-gitea/gitea.git
synced 2026-02-01 07:32:58 +01:00
Fix test
This commit is contained in:
parent
98290c69e9
commit
840a5cadfc
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user