Skip to content

Commit 90f1172

Browse files
committed
Update stub implementation
1 parent ac128e2 commit 90f1172

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/github/server_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111

1212
"github.com/github/github-mcp-server/pkg/lockdown"
1313
"github.com/github/github-mcp-server/pkg/observability"
14+
mcpLog "github.com/github/github-mcp-server/pkg/observability/log"
1415
"github.com/github/github-mcp-server/pkg/raw"
1516
"github.com/github/github-mcp-server/pkg/translations"
1617
"github.com/google/go-github/v79/github"
@@ -54,10 +55,10 @@ func (s stubDeps) GetRawClient(ctx context.Context) (*raw.Client, error) {
5455
}
5556

5657
func (s stubDeps) GetRepoAccessCache() *lockdown.RepoAccessCache { return s.repoAccessCache }
57-
func (s stubDeps) GetObsv() *observability.Exporters { return &s.obsv }
5858
func (s stubDeps) GetT() translations.TranslationHelperFunc { return s.t }
5959
func (s stubDeps) GetFlags() FeatureFlags { return s.flags }
6060
func (s stubDeps) GetContentWindowSize() int { return s.contentWindowSize }
61+
func (s stubDeps) Logger(ctx context.Context) mcpLog.Logger { return s.obsv.Logger(ctx) }
6162

6263
// Helper functions to create stub client functions for error testing
6364
func stubClientFnFromHTTP(httpClient *http.Client) func(context.Context) (*github.Client, error) {

0 commit comments

Comments
 (0)