refactor(test): remove misleading t.Setenv in GitHub integration test
PR Ready Gate / clear-labels (pull_request) Successful in 1s
CI / test (pull_request) Successful in 17s
CI / review (anthropic--claude-4.6-sonnet, sonnet, SONNET_REVIEW_TOKEN) (pull_request) Successful in 25s
CI / review (gpt-5, gpt, GPT_REVIEW_TOKEN) (pull_request) Successful in 1m1s
CI / review (gpt-5, security, ., rodin/security-patterns, SECURITY_REVIEW.md, SECURITY_REVIEW_TOKEN) (pull_request) Successful in 1m0s
PR Ready Gate / clear-labels (pull_request) Successful in 1s
CI / test (pull_request) Successful in 17s
CI / review (anthropic--claude-4.6-sonnet, sonnet, SONNET_REVIEW_TOKEN) (pull_request) Successful in 25s
CI / review (gpt-5, gpt, GPT_REVIEW_TOKEN) (pull_request) Successful in 1m1s
CI / review (gpt-5, security, ., rodin/security-patterns, SECURITY_REVIEW.md, SECURITY_REVIEW_TOKEN) (pull_request) Successful in 1m0s
The test constructs github.Client directly (matching the Gitea integration test pattern), so setting VCS_TYPE does not affect the code under test. Remove the setenv call to avoid implying routing is being exercised.
This commit is contained in:
@@ -194,10 +194,6 @@ func TestIntegration_GitHub_PostAndVerifyReview(t *testing.T) {
|
|||||||
owner, repoName := parts[0], parts[1]
|
owner, repoName := parts[0], parts[1]
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
// Verify the GitHub adapter is selected via VCS routing.
|
|
||||||
t.Setenv("VCS_TYPE", "github")
|
|
||||||
|
|
||||||
ghClient := github.NewClient(githubToken, "https://api.github.com")
|
ghClient := github.NewClient(githubToken, "https://api.github.com")
|
||||||
|
|
||||||
// Verify adapter selection: GetAuthenticatedUser must succeed.
|
// Verify adapter selection: GetAuthenticatedUser must succeed.
|
||||||
|
|||||||
Reference in New Issue
Block a user