summaryrefslogtreecommitdiffstats
path: root/models/issue_test.go
diff options
context:
space:
mode:
authorSandro Santilli <strk@kbt.io>2017-03-21 01:55:00 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2017-03-21 08:55:00 +0800
commitf73e7344111645b836e767bbf80b96834651805f (patch)
tree0315cb59a9b56bcb594d2cd4dccf385557e834ba /models/issue_test.go
parent888dee3b5f931062ea97e57130b26d1943e5173e (diff)
downloadgitea-f73e7344111645b836e767bbf80b96834651805f.tar.gz
gitea-f73e7344111645b836e767bbf80b96834651805f.zip
Run "make fmt" with go-1.6 (#1333)
Diffstat (limited to 'models/issue_test.go')
-rw-r--r--models/issue_test.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/models/issue_test.go b/models/issue_test.go
index 52724d07d4..71ce92ea7e 100644
--- a/models/issue_test.go
+++ b/models/issue_test.go
@@ -67,8 +67,10 @@ func TestGetParticipantsByIssueID(t *testing.T) {
checkPartecipants := func(issueID int64, userIDs []int) {
partecipants, err := GetParticipantsByIssueID(issueID)
if assert.NoError(t, err) {
- partecipantsIDs := make([]int,len(partecipants))
- for i,u := range partecipants { partecipantsIDs[i] = int(u.ID) }
+ partecipantsIDs := make([]int, len(partecipants))
+ for i, u := range partecipants {
+ partecipantsIDs[i] = int(u.ID)
+ }
sort.Ints(partecipantsIDs)
sort.Ints(userIDs)
assert.Equal(t, userIDs, partecipantsIDs)
@@ -79,6 +81,6 @@ func TestGetParticipantsByIssueID(t *testing.T) {
// 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})
+ checkPartecipants(1, []int{3, 5})
}