aboutsummaryrefslogtreecommitdiffstats
path: root/models/issues/milestone_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/issues/milestone_test.go')
-rw-r--r--models/issues/milestone_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/issues/milestone_test.go b/models/issues/milestone_test.go
index 09f51de45c..e087318320 100644
--- a/models/issues/milestone_test.go
+++ b/models/issues/milestone_test.go
@@ -149,7 +149,7 @@ func TestCountRepoMilestones(t *testing.T) {
assert.NoError(t, unittest.PrepareTestDatabase())
test := func(repoID int64) {
repo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: repoID}).(*repo_model.Repository)
- count, err := countRepoMilestones(db.GetEngine(db.DefaultContext), repoID)
+ count, err := countRepoMilestones(db.DefaultContext, repoID)
assert.NoError(t, err)
assert.EqualValues(t, repo.NumMilestones, count)
}
@@ -157,7 +157,7 @@ func TestCountRepoMilestones(t *testing.T) {
test(2)
test(3)
- count, err := countRepoMilestones(db.GetEngine(db.DefaultContext), unittest.NonexistentID)
+ count, err := countRepoMilestones(db.DefaultContext, unittest.NonexistentID)
assert.NoError(t, err)
assert.EqualValues(t, 0, count)
}