This commit is contained in:
6543 2020-05-22 12:35:05 +02:00
parent c6f09610f1
commit 7ffe4fe3be
No known key found for this signature in database
GPG Key ID: A1CA74D27FD13271
1 changed files with 2 additions and 1 deletions

View File

@ -1566,7 +1566,8 @@ func TestPullRequest(t *testing.T) {
t.Fatal("failed to create user02: %w", err)
}
giteaUser02Token, err := giteaClient.CreateAccessToken(giteaUser02, "password", gitea.CreateAccessTokenOption{Name: "token01"})
giteaClient.SetBasicAuth(giteaUser02, "password")
giteaUser02Token, err := giteaClient.CreateAccessToken(gitea.CreateAccessTokenOption{Name: "token01"})
if err != nil {
t.Fatalf("failed to create token for user02: %v", err)
}