diff options
Diffstat (limited to 'integrations/rename_branch_test.go')
-rw-r--r-- | integrations/rename_branch_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/integrations/rename_branch_test.go b/integrations/rename_branch_test.go index 1fe1983054..e856214f3c 100644 --- a/integrations/rename_branch_test.go +++ b/integrations/rename_branch_test.go @@ -8,7 +8,7 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/models" + repo_model "code.gitea.io/gitea/models/repo" "code.gitea.io/gitea/models/unittest" "github.com/stretchr/testify/assert" @@ -40,6 +40,6 @@ func TestRenameBranch(t *testing.T) { assert.Equal(t, "/user2/repo1/src/branch/main/README.md", location) // check db - repo1 := unittest.AssertExistsAndLoadBean(t, &models.Repository{ID: 1}).(*models.Repository) + repo1 := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 1}).(*repo_model.Repository) assert.Equal(t, "main", repo1.DefaultBranch) } |