aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2024-03-01 10:23:00 +0800
committerGitHub <noreply@github.com>2024-03-01 02:23:00 +0000
commit58ce1de994c2a036ebf7137c143ce193694d740d (patch)
tree0e88485e095f31a9124e2643d528d323c30b9ce5 /tests
parent5e32cd6beb1a4f11bd19e6d44ba2a50828b686ef (diff)
downloadgitea-58ce1de994c2a036ebf7137c143ce193694d740d.tar.gz
gitea-58ce1de994c2a036ebf7137c143ce193694d740d.zip
Move migration functions to services layer (#29497)
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/mirror_pull_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/integration/mirror_pull_test.go b/tests/integration/mirror_pull_test.go
index 2e71b80fbb..77050c4bbc 100644
--- a/tests/integration/mirror_pull_test.go
+++ b/tests/integration/mirror_pull_test.go
@@ -14,7 +14,6 @@ import (
"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/gitrepo"
"code.gitea.io/gitea/modules/migration"
- "code.gitea.io/gitea/modules/repository"
mirror_service "code.gitea.io/gitea/services/mirror"
release_service "code.gitea.io/gitea/services/release"
repo_service "code.gitea.io/gitea/services/repository"
@@ -52,7 +51,7 @@ func TestMirrorPull(t *testing.T) {
ctx := context.Background()
- mirror, err := repository.MigrateRepositoryGitData(ctx, user, mirrorRepo, opts, nil)
+ mirror, err := repo_service.MigrateRepositoryGitData(ctx, user, mirrorRepo, opts, nil)
assert.NoError(t, err)
gitRepo, err := gitrepo.OpenRepository(git.DefaultContext, repo)