From e2311045d36bc517aec6b377ccec3f3029f202d7 Mon Sep 17 00:00:00 2001 From: "mudler's LocalAI [bot]" <139863280+localai-bot@users.noreply.github.com> Date: Mon, 3 Aug 2026 22:53:04 +0200 Subject: [PATCH] fix(mcp): drop the duplicated scheduling methods on stubClient (#11323) master does not compile: vet: core/http/endpoints/mcp/localai_assistant_test.go:157:19: method stubClient.ListScheduling already declared at core/http/endpoints/mcp/localai_assistant_test.go:87:19 Two fixes for the same breakage landed. The four Scheduling methods were already present at lines 87-99, in interface order after ListNodes, by the time #11318 merged; #11318 appended its own copy after GetRouterDecisions. The two blocks sit in different parts of the file, so git merged both without a conflict and nothing flagged it. Remove the appended copy and keep the one in interface order. Pure deletion, no behaviour change. Verified: go vet clean on ./core/http/endpoints/mcp/, and go test ./core/http/endpoints/mcp/ passes. Assisted-by: Claude Code:claude-opus-5 [Read] [Edit] [Bash] Signed-off-by: Ettore Di Giacinto Co-authored-by: Ettore Di Giacinto --- .../http/endpoints/mcp/localai_assistant_test.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/core/http/endpoints/mcp/localai_assistant_test.go b/core/http/endpoints/mcp/localai_assistant_test.go index 8543b3b9a..213f6fa0c 100644 --- a/core/http/endpoints/mcp/localai_assistant_test.go +++ b/core/http/endpoints/mcp/localai_assistant_test.go @@ -154,22 +154,6 @@ func (stubClient) GetRouterDecisions(_ context.Context, _ localaitools.RouterDec return []localaitools.RouterDecision{}, nil } -func (stubClient) ListScheduling(_ context.Context) ([]localaitools.ModelSchedulingConfig, error) { - return []localaitools.ModelSchedulingConfig{}, nil -} - -func (stubClient) GetScheduling(_ context.Context, _ string) (*localaitools.ModelSchedulingConfig, error) { - return &localaitools.ModelSchedulingConfig{}, nil -} - -func (stubClient) SetScheduling(_ context.Context, _ localaitools.SetSchedulingRequest) (*localaitools.ModelSchedulingConfig, error) { - return &localaitools.ModelSchedulingConfig{}, nil -} - -func (stubClient) DeleteScheduling(_ context.Context, _ string) error { - return nil -} - var _ = Describe("LocalAIAssistantHolder", func() { var ctx context.Context