aboutsummaryrefslogtreecommitdiffstats
path: root/services/issue/milestone_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/issue/milestone_test.go')
-rw-r--r--services/issue/milestone_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/issue/milestone_test.go b/services/issue/milestone_test.go
index 069117d1f1..42b910166f 100644
--- a/services/issue/milestone_test.go
+++ b/services/issue/milestone_test.go
@@ -6,6 +6,7 @@ package issue
import (
"testing"
+ "code.gitea.io/gitea/models/db"
issues_model "code.gitea.io/gitea/models/issues"
"code.gitea.io/gitea/models/unittest"
user_model "code.gitea.io/gitea/models/user"
@@ -22,7 +23,7 @@ func TestChangeMilestoneAssign(t *testing.T) {
oldMilestoneID := issue.MilestoneID
issue.MilestoneID = 2
- assert.NoError(t, ChangeMilestoneAssign(issue, doer, oldMilestoneID))
+ assert.NoError(t, ChangeMilestoneAssign(db.DefaultContext, issue, doer, oldMilestoneID))
unittest.AssertExistsAndLoadBean(t, &issues_model.Comment{
IssueID: issue.ID,
Type: issues_model.CommentTypeMilestone,