summaryrefslogtreecommitdiffstats
path: root/integrations/change_default_branch_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/change_default_branch_test.go')
-rw-r--r--integrations/change_default_branch_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/integrations/change_default_branch_test.go b/integrations/change_default_branch_test.go
index 3b79e5032d..af5542e0b2 100644
--- a/integrations/change_default_branch_test.go
+++ b/integrations/change_default_branch_test.go
@@ -9,14 +9,14 @@ import (
"net/http"
"testing"
- "code.gitea.io/gitea/models"
+ repo_model "code.gitea.io/gitea/models/repo"
"code.gitea.io/gitea/models/unittest"
user_model "code.gitea.io/gitea/models/user"
)
func TestChangeDefaultBranch(t *testing.T) {
defer prepareTestEnv(t)()
- repo := unittest.AssertExistsAndLoadBean(t, &models.Repository{ID: 1}).(*models.Repository)
+ repo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 1}).(*repo_model.Repository)
owner := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: repo.OwnerID}).(*user_model.User)
session := loginUser(t, owner.Name)