diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-10-28 10:11:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-28 10:11:50 +0800 |
commit | 495d5e4329326b27158a25b44c37986923d0bb6b (patch) | |
tree | fa8474775eb9a1bdb11380ca17a9ca42a991fcb3 /models/issue_assignees_test.go | |
parent | 018b0e818038f3c38cc6bfc96fadeb25c92380e6 (diff) | |
download | gitea-495d5e4329326b27158a25b44c37986923d0bb6b.tar.gz gitea-495d5e4329326b27158a25b44c37986923d0bb6b.zip |
Move more issue assignee code from models to issue service (#8690)
* Move more issue assignee code from models to issue service
* fix test
Diffstat (limited to 'models/issue_assignees_test.go')
-rw-r--r-- | models/issue_assignees_test.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/models/issue_assignees_test.go b/models/issue_assignees_test.go index 1c5b5e7a22..163234b167 100644 --- a/models/issue_assignees_test.go +++ b/models/issue_assignees_test.go @@ -58,13 +58,4 @@ func TestUpdateAssignee(t *testing.T) { isAssigned, err = IsUserAssignedToIssue(issue, &User{ID: 4}) assert.NoError(t, err) assert.False(t, isAssigned) - - // Clean everyone - err = DeleteNotPassedAssignee(issue, user1, []*User{}) - assert.NoError(t, err) - - // Check they're gone - assignees, err = GetAssigneesByIssue(issue) - assert.NoError(t, err) - assert.Equal(t, 0, len(assignees)) } |