Skip to content

Commit 69104af

Browse files
Fix test
1 parent 21e3b2e commit 69104af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/terraform-mcp-server/main_metrics_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ func TestNewServerWithHooksOptionPassesThrough(t *testing.T) {
269269
customHooks := &mcpserver.Hooks{}
270270
customHooks.AddBeforeCallTool(func(ctx context.Context, id any, message *mcp.CallToolRequest) {})
271271

272-
srv := NewServer("test-version", metricsTestLogger(), nil, mcpserver.WithHooks(customHooks))
272+
srv, _ := NewServer("test-version", metricsTestLogger(), nil, mcpserver.WithHooks(customHooks))
273273
hooks := getServerHooksForTest(t, srv)
274274

275275
require.GreaterOrEqual(t, len(hooks.OnBeforeCallTool), 1)

0 commit comments

Comments
 (0)