Skip to content

Commit 647c282

Browse files
committed
fix tests
1 parent a30ddde commit 647c282

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

integrations/api_repo_get_contents_list_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"code.gitea.io/gitea/modules/git"
1616
"code.gitea.io/gitea/modules/setting"
1717
api "code.gitea.io/gitea/modules/structs"
18-
repo_service "code.gitea.io/gitea/services/repository"
18+
repo_module "code.gitea.io/gitea/modules/repository"
1919

2020
"github.com/stretchr/testify/assert"
2121
)
@@ -72,7 +72,7 @@ func testAPIGetContentsList(t *testing.T, u *url.URL) {
7272

7373
// Make a new branch in repo1
7474
newBranch := "test_branch"
75-
repo_service.CreateNewBranch(user2, repo1, repo1.DefaultBranch, newBranch)
75+
repo_module.CreateNewBranch(user2, repo1, repo1.DefaultBranch, newBranch)
7676
// Get the commit ID of the default branch
7777
gitRepo, _ := git.OpenRepository(repo1.RepoPath())
7878
defer gitRepo.Close()

integrations/api_repo_get_contents_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import (
1212
"code.gitea.io/gitea/models"
1313
"code.gitea.io/gitea/modules/context"
1414
"code.gitea.io/gitea/modules/git"
15+
repo_module "code.gitea.io/gitea/modules/repository"
1516
"code.gitea.io/gitea/modules/setting"
1617
api "code.gitea.io/gitea/modules/structs"
17-
repo_service "code.gitea.io/gitea/services/repository"
1818

1919
"github.com/stretchr/testify/assert"
2020
)
@@ -73,7 +73,7 @@ func testAPIGetContents(t *testing.T, u *url.URL) {
7373

7474
// Make a new branch in repo1
7575
newBranch := "test_branch"
76-
repo_service.CreateNewBranch(user2, repo1, repo1.DefaultBranch, newBranch)
76+
repo_module.CreateNewBranch(user2, repo1, repo1.DefaultBranch, newBranch)
7777
// Get the commit ID of the default branch
7878
gitRepo, _ := git.OpenRepository(repo1.RepoPath())
7979
defer gitRepo.Close()

0 commit comments

Comments
 (0)