diff options
Diffstat (limited to 'integrations/api_repo_git_ref_test.go')
-rw-r--r-- | integrations/api_repo_git_ref_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/integrations/api_repo_git_ref_test.go b/integrations/api_repo_git_ref_test.go index 9137f03adf..f0fc3c81fa 100644 --- a/integrations/api_repo_git_ref_test.go +++ b/integrations/api_repo_git_ref_test.go @@ -8,13 +8,13 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/models" "code.gitea.io/gitea/models/unittest" + user_model "code.gitea.io/gitea/models/user" ) func TestAPIReposGitRefs(t *testing.T) { defer prepareTestEnv(t)() - user := unittest.AssertExistsAndLoadBean(t, &models.User{ID: 2}).(*models.User) + user := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: 2}).(*user_model.User) // Login as User2. session := loginUser(t, user.Name) token := getTokenForLoggedInUser(t, session) |