summaryrefslogtreecommitdiffstats
path: root/models/issue_user_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/issue_user_test.go')
-rw-r--r--models/issue_user_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issue_user_test.go b/models/issue_user_test.go
index a333bc8619..a57ab33f9e 100644
--- a/models/issue_user_test.go
+++ b/models/issue_user_test.go
@@ -50,7 +50,7 @@ func TestUpdateIssueUsersByMentions(t *testing.T) {
issue := AssertExistsAndLoadBean(t, &Issue{ID: 1}).(*Issue)
uids := []int64{2, 5}
- assert.NoError(t, UpdateIssueUsersByMentions(x, issue.ID, uids))
+ assert.NoError(t, UpdateIssueUsersByMentions(DefaultDBContext(), issue.ID, uids))
for _, uid := range uids {
AssertExistsAndLoadBean(t, &IssueUser{IssueID: issue.ID, UID: uid}, "is_mentioned=1")
}