@@ -61,26 +61,23 @@ func TestGetIssuesByIDs(t *testing.T) {
6161}
6262
6363func TestGetParticipantsByIssueID (t * testing.T ) {
64-
6564 assert .NoError (t , PrepareTestDatabase ())
6665
67- checkPartecipants := func (issueID int64 , userIDs []int ) {
68- partecipants , err := GetParticipantsByIssueID (issueID )
66+ checkParticipants := func (issueID int64 , userIDs []int ) {
67+ participants , err := GetParticipantsByIssueID (issueID )
6968 if assert .NoError (t , err ) {
70- partecipantsIDs := make ([]int , len (partecipants ))
71- for i , u := range partecipants {
72- partecipantsIDs [i ] = int (u .ID )
69+ participantsIDs := make ([]int , len (participants ))
70+ for i , u := range participants {
71+ participantsIDs [i ] = int (u .ID )
7372 }
74- sort .Ints (partecipantsIDs )
73+ sort .Ints (participantsIDs )
7574 sort .Ints (userIDs )
76- assert .Equal (t , userIDs , partecipantsIDs )
75+ assert .Equal (t , userIDs , participantsIDs )
7776 }
78-
7977 }
8078
8179 // User 1 is issue1 poster (see fixtures/issue.yml)
8280 // User 2 only labeled issue1 (see fixtures/comment.yml)
8381 // Users 3 and 5 made actual comments (see fixtures/comment.yml)
84- checkPartecipants (1 , []int {3 , 5 })
85-
82+ checkParticipants (1 , []int {3 , 5 })
8683}
0 commit comments