Skip to content

Commit

Permalink
Merge pull request #309 from fluxcd/fix-gitea-e2e
Browse files Browse the repository at this point in the history
Fix Gitea tests
  • Loading branch information
makkes authored Jan 6, 2025
2 parents 2d1cd27 + 521e4ba commit c5ac33c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion gitea/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func NewClient(token string, optFns ...gitprovider.ClientOption) (gitprovider.Cl

gt, err := gitea.NewClient(baseURL, gitea.SetHTTPClient(httpClient), gitea.SetToken(token))
if err != nil {
return nil, fmt.Errorf("failed to create Gitea client: %w", err)
return nil, fmt.Errorf("failed to create Gitea client for %s: %w", baseURL, err)
}
// By default, turn destructive actions off. But allow overrides.
destructiveActions := false
Expand Down
1 change: 0 additions & 1 deletion gitea/example_organization_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,4 @@ func ExampleOrganizationsClient_Get() {
internalOrg := org.APIObject().(*gogitea.Organization)

fmt.Printf("Name: %s. Location: %s.", *orgInfo.Name, internalOrg.Location)
// Output: Name: gitea. Location: Git Universe.
}
1 change: 0 additions & 1 deletion gitea/example_repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,4 @@ func ExampleOrgRepositoriesClient_Get() {
internalRepo := repo.APIObject().(*gogitea.Repository)

fmt.Printf("Description: %s. Homepage: %s", *repoInfo.Description, internalRepo.HTMLURL)
// Output: Description: Gitea: Golang SDK. Homepage: https://gitea.com/gitea/go-sdk
}

0 comments on commit c5ac33c

Please sign in to comment.