summaryrefslogtreecommitdiffstats
path: root/tests/integration/api_user_follow_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/api_user_follow_test.go')
-rw-r--r--tests/integration/api_user_follow_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/integration/api_user_follow_test.go b/tests/integration/api_user_follow_test.go
index 65749521cc..c7ad62e649 100644
--- a/tests/integration/api_user_follow_test.go
+++ b/tests/integration/api_user_follow_test.go
@@ -8,6 +8,7 @@ import (
"net/http"
"testing"
+ auth_model "code.gitea.io/gitea/models/auth"
api "code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/tests"
@@ -24,7 +25,7 @@ func TestAPIFollow(t *testing.T) {
token1 := getTokenForLoggedInUser(t, session1)
session2 := loginUser(t, user2)
- token2 := getTokenForLoggedInUser(t, session2)
+ token2 := getTokenForLoggedInUser(t, session2, auth_model.AccessTokenScopeUserFollow)
t.Run("Follow", func(t *testing.T) {
defer tests.PrintCurrentTest(t)()