We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98290c6 commit 840a5caCopy full SHA for 840a5ca
models/issues/pull_list_test.go
@@ -39,9 +39,8 @@ func TestPullRequestList_LoadReviewCommentsCounts(t *testing.T) {
39
reviewComments, err := prs.LoadReviewCommentsCounts(db.DefaultContext)
40
assert.NoError(t, err)
41
assert.Len(t, reviewComments, 2)
42
- for _, pr := range prs {
43
- assert.Equal(t, 1, reviewComments[pr.IssueID])
44
- }
+ assert.Equal(t, 1, reviewComments[prs[0].IssueID])
+ assert.Equal(t, 2, reviewComments[prs[1].IssueID])
45
}
46
47
func TestPullRequestList_LoadReviews(t *testing.T) {
0 commit comments