Skip to content

Commit ed31dff

Browse files
authored
Merge pull request #1874 from ethantkoenig/typo/issue_test
Fix misspelled variables
2 parents 858126b + 1a09afc commit ed31dff

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

models/issue_test.go

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,26 +61,23 @@ func TestGetIssuesByIDs(t *testing.T) {
6161
}
6262

6363
func 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

Comments
 (0)