]> source.dussan.org Git - gitea.git/commitdiff
Fix misspelled variables 1874/head
authorEthan Koenig <ethantkoenig@gmail.com>
Sun, 4 Jun 2017 17:39:08 +0000 (13:39 -0400)
committerEthan Koenig <ethantkoenig@gmail.com>
Sun, 4 Jun 2017 17:39:08 +0000 (13:39 -0400)
models/issue_test.go

index 71ce92ea7e663c9819e02babe8cb22b330dc090e..e335014ca58e849e40cb4f75d6ff71bde931e738 100644 (file)
@@ -61,26 +61,23 @@ func TestGetIssuesByIDs(t *testing.T) {
 }
 
 func TestGetParticipantsByIssueID(t *testing.T) {
-
        assert.NoError(t, PrepareTestDatabase())
 
-       checkPartecipants := func(issueID int64, userIDs []int) {
-               partecipants, err := GetParticipantsByIssueID(issueID)
+       checkParticipants := func(issueID int64, userIDs []int) {
+               participants, err := GetParticipantsByIssueID(issueID)
                if assert.NoError(t, err) {
-                       partecipantsIDs := make([]int, len(partecipants))
-                       for i, u := range partecipants {
-                               partecipantsIDs[i] = int(u.ID)
+                       participantsIDs := make([]int, len(participants))
+                       for i, u := range participants {
+                               participantsIDs[i] = int(u.ID)
                        }
-                       sort.Ints(partecipantsIDs)
+                       sort.Ints(participantsIDs)
                        sort.Ints(userIDs)
-                       assert.Equal(t, userIDs, partecipantsIDs)
+                       assert.Equal(t, userIDs, participantsIDs)
                }
-
        }
 
        // User 1 is issue1 poster (see fixtures/issue.yml)
        // User 2 only labeled issue1 (see fixtures/comment.yml)
        // Users 3 and 5 made actual comments (see fixtures/comment.yml)
-       checkPartecipants(1, []int{3, 5})
-
+       checkParticipants(1, []int{3, 5})
 }