fix(tests): repair tests/integration compile errors (upstream API/import drift) #755
Reference in New Issue
Block a user
Delete Branch "fix/integration-tests-compile-wt"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
tests/integrationpackage failed to compile (not just fail at runtime) due to drift that was never propagated after upstream API changes + the fork module rename. This blocked the layered test pipeline (Template-Go#4) and is the clean go-compile owed before the #733 production release.Fixes (2 files, the whole error surface)
api_packages_composer_test.go—composer.PackageMetadataResponse{}(a value) used where*composer.PackageMetadataResponse(pointer) is required → take the address.oauth_avatar_test.go— 10 stale upstream importscode.gitea.io/gitea/...(never updated after the fork renamed its module) →code.mokoconsulting.tech/MokoConsulting/MokoGitea/.... This was causing theoauth2.Sourcevalue-type mismatch againstaddOAuth2Source(two different modules'Sourcetypes).Verification
go vet ./tests/integration/...→ exits 0 (package compiles clean). Both files gofmt-clean. Only test files changed — no production code touched.Note: the broader error chain feared in Template-Go#4 (oauth2 dup func,
NewRequestWithBody[]byte→io.Reader) did not materialize — those were already resolved in the current tree; these two were the only remaining compile blockers.Unblocks Template-Go#4 and provides the clean integration-test compile for #733.
https://claude.ai/code/session_01Wsno14cxE49MstXFs9G5KT