aboutsummaryrefslogtreecommitdiffstats
path: root/services/issue/assignee_test.go
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-04-15 02:18:28 +0800
committerGitHub <noreply@github.com>2023-04-14 14:18:28 -0400
commitcfe3d6e9b507a9331328e55ff98a1f582abae185 (patch)
tree94b035bd2859291a16edda27822b570bdd611a35 /services/issue/assignee_test.go
parentb667634b32e240f3f3260ab7e304f72f4ff75659 (diff)
downloadgitea-cfe3d6e9b507a9331328e55ff98a1f582abae185.tar.gz
gitea-cfe3d6e9b507a9331328e55ff98a1f582abae185.zip
Make more functions use ctx instead of db.DefaultContext (#24068)
Continue the "ctx refactoring" work. There are still a lot db.DefaultContext, incorrect context could cause database deadlock errors.
Diffstat (limited to 'services/issue/assignee_test.go')
-rw-r--r--services/issue/assignee_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/issue/assignee_test.go b/services/issue/assignee_test.go
index 114ace078e..43b24e1d1f 100644
--- a/services/issue/assignee_test.go
+++ b/services/issue/assignee_test.go
@@ -31,7 +31,7 @@ func TestDeleteNotPassedAssignee(t *testing.T) {
assert.True(t, isAssigned)
// Clean everyone
- err = DeleteNotPassedAssignee(issue, user1, []*user_model.User{})
+ err = DeleteNotPassedAssignee(db.DefaultContext, issue, user1, []*user_model.User{})
assert.NoError(t, err)
assert.EqualValues(t, 0, len(issue.Assignees))