Skip to content

Commit 2978942

Browse files
committed
Update tests after moving code to modules/mirror
1 parent c6a4f30 commit 2978942

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: integrations/mirror_push_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ import (
1717
"code.gitea.io/gitea/models/unittest"
1818
user_model "code.gitea.io/gitea/models/user"
1919
"code.gitea.io/gitea/modules/git"
20+
mirror_module "code.gitea.io/gitea/modules/mirror"
2021
"code.gitea.io/gitea/modules/repository"
2122
"code.gitea.io/gitea/modules/setting"
2223
"code.gitea.io/gitea/services/migrations"
23-
mirror_service "code.gitea.io/gitea/services/mirror"
2424

2525
"github.com/stretchr/testify/assert"
2626
)
@@ -51,7 +51,7 @@ func testMirrorPush(t *testing.T, u *url.URL) {
5151
assert.NoError(t, err)
5252
assert.Len(t, mirrors, 1)
5353

54-
ok := mirror_service.SyncPushMirror(context.Background(), mirrors[0].ID)
54+
ok := mirror_module.SyncPushMirror(context.Background(), mirrors[0].ID)
5555
assert.True(t, ok)
5656

5757
srcGitRepo, err := git.OpenRepository(git.DefaultContext, srcRepo.RepoPath())

0 commit comments

Comments
 (0)