@@ -179,7 +179,7 @@ func newTestService(t *testing.T, srv *httptest.Server) *Service {
179179 t .Helper ()
180180 ctx := context .Background ()
181181 paths := config .NewPaths (& config.Env {Home : t .TempDir ()})
182- svc , err := New (paths , "test" )
182+ svc , err := New (paths , "test" , nil )
183183 if err != nil {
184184 t .Fatalf ("new service: %v" , err )
185185 }
@@ -405,7 +405,7 @@ func TestLocalInitializationDoesNotResolveKeyringAuth(t *testing.T) {
405405 if err := config .Save (configPath , cfg ); err != nil {
406406 t .Fatal (err )
407407 }
408- svc , err := New (paths , "test" )
408+ svc , err := New (paths , "test" , nil )
409409 if err != nil {
410410 t .Fatalf ("local service construction resolved GitHub auth: %v" , err )
411411 }
@@ -444,7 +444,7 @@ func TestNewRejectsInvalidConfiguredTokenSource(t *testing.T) {
444444 t .Fatal (err )
445445 }
446446
447- _ , err = New (paths , "test" )
447+ _ , err = New (paths , "test" , nil )
448448 if err == nil || ! strings .Contains (err .Error (), "invalid token_source method" ) {
449449 t .Fatalf ("New error = %v, want invalid token source" , err )
450450 }
@@ -537,7 +537,7 @@ func TestMCPSearchRequiresCompleteRepositoryFilter(t *testing.T) {
537537func TestSearchCodeUsesStoredSnapshotWithoutNetwork (t * testing.T ) {
538538 ctx := context .Background ()
539539 paths := config .NewPaths (& config.Env {Home : t .TempDir ()})
540- svc , err := New (paths , "test" )
540+ svc , err := New (paths , "test" , nil )
541541 if err != nil {
542542 t .Fatal (err )
543543 }
@@ -564,7 +564,7 @@ func TestSearchCodeUsesStoredSnapshotWithoutNetwork(t *testing.T) {
564564func TestInvestigationAndOpportunityFlow (t * testing.T ) {
565565 ctx := context .Background ()
566566 paths := config .NewPaths (& config.Env {Home : t .TempDir ()})
567- svc , err := New (paths , "test" )
567+ svc , err := New (paths , "test" , nil )
568568 if err != nil {
569569 t .Fatal (err )
570570 }
@@ -649,7 +649,7 @@ func TestInvestigationAndOpportunityFlow(t *testing.T) {
649649func TestPrepareContributionDrafts (t * testing.T ) {
650650 ctx := context .Background ()
651651 paths := config .NewPaths (& config.Env {Home : t .TempDir ()})
652- svc , err := New (paths , "test" )
652+ svc , err := New (paths , "test" , nil )
653653 if err != nil {
654654 t .Fatalf ("new service: %v" , err )
655655 }
@@ -725,7 +725,7 @@ func TestPrepareContributionDrafts(t *testing.T) {
725725func TestValidationDefineRunAndCompare (t * testing.T ) {
726726 ctx := context .Background ()
727727 paths := config .NewPaths (& config.Env {Home : t .TempDir ()})
728- svc , err := New (paths , "test" )
728+ svc , err := New (paths , "test" , nil )
729729 if err != nil {
730730 t .Fatalf ("new service: %v" , err )
731731 }
@@ -794,7 +794,7 @@ func TestValidationDefineRunAndCompare(t *testing.T) {
794794func TestDefineValidationParsesQuotedArguments (t * testing.T ) {
795795 ctx := context .Background ()
796796 paths := config .NewPaths (& config.Env {Home : t .TempDir ()})
797- svc , err := New (paths , "test" )
797+ svc , err := New (paths , "test" , nil )
798798 if err != nil {
799799 t .Fatal (err )
800800 }
@@ -829,7 +829,7 @@ func TestWorkspaceCreateAndShow(t *testing.T) {
829829 remote , baseSHA , candidateSHA := setupAppGitRemote (t )
830830
831831 paths := config .NewPaths (& config.Env {Home : t .TempDir ()})
832- svc , err := New (paths , "test" )
832+ svc , err := New (paths , "test" , nil )
833833 if err != nil {
834834 t .Fatalf ("new service: %v" , err )
835835 }
@@ -935,7 +935,7 @@ func newLocalService(t *testing.T) *Service {
935935 t .Helper ()
936936 ctx := context .Background ()
937937 paths := config .NewPaths (& config.Env {Home : t .TempDir ()})
938- svc , err := New (paths , "test" )
938+ svc , err := New (paths , "test" , nil )
939939 if err != nil {
940940 t .Fatalf ("new service: %v" , err )
941941 }
0 commit comments