summaryrefslogtreecommitdiffstats
path: root/integrations/mirror_pull_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/mirror_pull_test.go')
-rw-r--r--integrations/mirror_pull_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/integrations/mirror_pull_test.go b/integrations/mirror_pull_test.go
index 3908f35557..f396aac4b4 100644
--- a/integrations/mirror_pull_test.go
+++ b/integrations/mirror_pull_test.go
@@ -9,6 +9,7 @@ import (
"testing"
"code.gitea.io/gitea/models"
+ "code.gitea.io/gitea/models/db"
"code.gitea.io/gitea/modules/git"
migration "code.gitea.io/gitea/modules/migrations/base"
"code.gitea.io/gitea/modules/repository"
@@ -21,8 +22,8 @@ import (
func TestMirrorPull(t *testing.T) {
defer prepareTestEnv(t)()
- user := models.AssertExistsAndLoadBean(t, &models.User{ID: 2}).(*models.User)
- repo := models.AssertExistsAndLoadBean(t, &models.Repository{ID: 1}).(*models.Repository)
+ user := db.AssertExistsAndLoadBean(t, &models.User{ID: 2}).(*models.User)
+ repo := db.AssertExistsAndLoadBean(t, &models.Repository{ID: 1}).(*models.Repository)
repoPath := models.RepoPath(user.Name, repo.Name)
opts := migration.MigrateOptions{