@@ -61,26 +61,23 @@ func TestGetIssuesByIDs(t *testing.T) {
61
61
}
62
62
63
63
func TestGetParticipantsByIssueID (t * testing.T ) {
64
-
65
64
assert .NoError (t , PrepareTestDatabase ())
66
65
67
- checkPartecipants := func (issueID int64 , userIDs []int ) {
68
- partecipants , err := GetParticipantsByIssueID (issueID )
66
+ checkParticipants := func (issueID int64 , userIDs []int ) {
67
+ participants , err := GetParticipantsByIssueID (issueID )
69
68
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 )
73
72
}
74
- sort .Ints (partecipantsIDs )
73
+ sort .Ints (participantsIDs )
75
74
sort .Ints (userIDs )
76
- assert .Equal (t , userIDs , partecipantsIDs )
75
+ assert .Equal (t , userIDs , participantsIDs )
77
76
}
78
-
79
77
}
80
78
81
79
// User 1 is issue1 poster (see fixtures/issue.yml)
82
80
// User 2 only labeled issue1 (see fixtures/comment.yml)
83
81
// Users 3 and 5 made actual comments (see fixtures/comment.yml)
84
- checkPartecipants (1 , []int {3 , 5 })
85
-
82
+ checkParticipants (1 , []int {3 , 5 })
86
83
}
0 commit comments