aboutsummaryrefslogtreecommitdiffstats
path: root/integrations/mirror_push_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/mirror_push_test.go')
-rw-r--r--integrations/mirror_push_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/integrations/mirror_push_test.go b/integrations/mirror_push_test.go
index 3191ef7704..3d2966cfdc 100644
--- a/integrations/mirror_push_test.go
+++ b/integrations/mirror_push_test.go
@@ -12,6 +12,7 @@ import (
"testing"
"code.gitea.io/gitea/models"
+ "code.gitea.io/gitea/models/db"
"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/repository"
"code.gitea.io/gitea/modules/setting"
@@ -29,8 +30,8 @@ func testMirrorPush(t *testing.T, u *url.URL) {
setting.Migrations.AllowLocalNetworks = true
- user := models.AssertExistsAndLoadBean(t, &models.User{ID: 2}).(*models.User)
- srcRepo := models.AssertExistsAndLoadBean(t, &models.Repository{ID: 1}).(*models.Repository)
+ user := db.AssertExistsAndLoadBean(t, &models.User{ID: 2}).(*models.User)
+ srcRepo := db.AssertExistsAndLoadBean(t, &models.Repository{ID: 1}).(*models.Repository)
mirrorRepo, err := repository.CreateRepository(user, user, models.CreateRepoOptions{
Name: "test-push-mirror",