Include repo scope in TestMigrateGiteaForm

This commit is contained in:
harryzcy 2022-10-30 17:43:08 -04:00
parent 15ed960dc5
commit 11a51038ad
No known key found for this signature in database
GPG key ID: CC2953E050C19686

View file

@ -67,7 +67,7 @@ func TestMigrateGiteaForm(t *testing.T) {
repoName := "repo1"
repoOwner := unittest.AssertExistsAndLoadBean(t, &user_model.User{Name: ownerName})
session := loginUser(t, ownerName)
token := getTokenForLoggedInUser(t, session)
token := getTokenForLoggedInUser(t, session, "repo")
// Step 0: verify the repo is available
req := NewRequestf(t, "GET", fmt.Sprintf("/%s/%s", ownerName, repoName))