summaryrefslogtreecommitdiffstats
path: root/tests/integration/org_count_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/org_count_test.go')
-rw-r--r--tests/integration/org_count_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/integration/org_count_test.go b/tests/integration/org_count_test.go
index a6fe7f188e..8f850a170f 100644
--- a/tests/integration/org_count_test.go
+++ b/tests/integration/org_count_test.go
@@ -8,6 +8,7 @@ import (
"strings"
"testing"
+ auth_model "code.gitea.io/gitea/models/auth"
"code.gitea.io/gitea/models/organization"
"code.gitea.io/gitea/models/unittest"
user_model "code.gitea.io/gitea/models/user"
@@ -24,7 +25,7 @@ func testOrgCounts(t *testing.T, u *url.URL) {
orgOwner := "user2"
orgName := "testOrg"
orgCollaborator := "user4"
- ctx := NewAPITestContext(t, orgOwner, "repo1")
+ ctx := NewAPITestContext(t, orgOwner, "repo1", auth_model.AccessTokenScopeAdminOrg)
var ownerCountRepos map[string]int
var collabCountRepos map[string]int