From 889dea8fc1e78b0d915b27f122df116e7296336d Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Fri, 18 Jun 2021 19:00:53 +0200 Subject: Remove User.GetOrganizations() (#14032) as title --- integrations/org_count_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'integrations') diff --git a/integrations/org_count_test.go b/integrations/org_count_test.go index 755ee3cee5..20917dc17e 100644 --- a/integrations/org_count_test.go +++ b/integrations/org_count_test.go @@ -114,11 +114,12 @@ func doCheckOrgCounts(username string, orgCounts map[string]int, strict bool, ca Name: username, }).(*models.User) - user.GetOrganizations(&models.SearchOrganizationsOptions{All: true}) + orgs, err := models.GetOrgsByUserID(user.ID, true) + assert.NoError(t, err) calcOrgCounts := map[string]int{} - for _, org := range user.Orgs { + for _, org := range orgs { calcOrgCounts[org.LowerName] = org.NumRepos count, ok := canonicalCounts[org.LowerName] if ok { -- cgit v1.2.3