diff options
author | Andrey Nering <andrey.nering@gmail.com> | 2017-06-04 17:10:40 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-04 17:10:40 -0300 |
commit | ed31dff5ab9e3bc618c647acca2d3f34e720a2d7 (patch) | |
tree | 0bba5dfa044c95c4d7656ddd65c343caa72e7168 /models | |
parent | 858126bca1a79a29e7847284599e84db1c642a70 (diff) | |
parent | 1a09afc729a316184ac86177fe5beb2a458f332e (diff) | |
download | gitea-ed31dff5ab9e3bc618c647acca2d3f34e720a2d7.tar.gz gitea-ed31dff5ab9e3bc618c647acca2d3f34e720a2d7.zip |
Merge pull request #1874 from ethantkoenig/typo/issue_test
Fix misspelled variables
Diffstat (limited to 'models')
-rw-r--r-- | models/issue_test.go | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/models/issue_test.go b/models/issue_test.go index 71ce92ea7e..e335014ca5 100644 --- a/models/issue_test.go +++ b/models/issue_test.go @@ -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}) } |