aboutsummaryrefslogtreecommitdiffstats
path: root/integrations/org_count_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/org_count_test.go')
-rw-r--r--integrations/org_count_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/integrations/org_count_test.go b/integrations/org_count_test.go
index a45d1e81b5..b7d0da2f4b 100644
--- a/integrations/org_count_test.go
+++ b/integrations/org_count_test.go
@@ -11,6 +11,7 @@ import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/models/unittest"
+ user_model "code.gitea.io/gitea/models/user"
api "code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
@@ -112,9 +113,9 @@ func doCheckOrgCounts(username string, orgCounts map[string]int, strict bool, ca
}
return func(t *testing.T) {
- user := unittest.AssertExistsAndLoadBean(t, &models.User{
+ user := unittest.AssertExistsAndLoadBean(t, &user_model.User{
Name: username,
- }).(*models.User)
+ }).(*user_model.User)
orgs, err := models.FindOrgs(models.FindOrgOptions{
UserID: user.ID,