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 fcf5edc758..9137f03adf 100644 --- a/integrations/api_repo_git_ref_test.go +++ b/integrations/api_repo_git_ref_test.go @@ -9,12 +9,12 @@ import ( "testing" "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/db" + "code.gitea.io/gitea/models/unittest" ) func TestAPIReposGitRefs(t *testing.T) { defer prepareTestEnv(t)() - user := db.AssertExistsAndLoadBean(t, &models.User{ID: 2}).(*models.User) + user := unittest.AssertExistsAndLoadBean(t, &models.User{ID: 2}).(*models.User) // Login as User2. session := loginUser(t, user.Name) token := getTokenForLoggedInUser(t, session) |