Skip to content

Commit b4c24d2

Browse files
Update controllers/gitrepository_controller_test.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e816d23 commit b4c24d2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

controllers/gitrepository_controller_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,9 @@ func TestGitRepositoryReconciler_Reconcile_SkipNonGenericProviders(t *testing.T)
525525
}
526526

527527
mockGitHubClient := &MockGitHubClient{}
528-
// ValidateRepositoryURL should NOT be called since provider check happens first
528+
// ValidateRepositoryURL should NOT be called: non-generic providers are managed by Flux
529+
// itself and do not use this controller's GitHub token management, so the provider check
530+
// short-circuits before any URL validation.
529531

530532
reconciler := &GitRepositoryReconciler{
531533
Client: fakeClient,

0 commit comments

Comments
 (0)