From d01e3cc63b8f6291cf9d20bd83423e4e3645d51b Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Mon, 2 Nov 2026 19:59:36 +0000 Subject: [PATCH] test(chats): avoid a misleading tool variable Name the MCP tool explicitly so the Ginkgo-only lint rule does not mistake its Run method for testing.T.Run. Assisted-by: nib:gpt-6.1-sol Signed-off-by: Ettore Di Giacinto --- core/application/studio_mcpconns_timeout_internal_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/application/studio_mcpconns_timeout_internal_test.go b/core/application/studio_mcpconns_timeout_internal_test.go index 15b9191d39..bcc9ef85ad 100644 --- a/core/application/studio_mcpconns_timeout_internal_test.go +++ b/core/application/studio_mcpconns_timeout_internal_test.go @@ -59,9 +59,9 @@ func runSlow(a *Application, url string) (string, error) { _, err := a.StudioMCPConnectors().Create(ctx, "u1", mcpconns.Input{Name: "Slow", Transport: mcpconns.TransportHTTP, URL: url, Enabled: true}) Expect(err).NotTo(HaveOccurred()) tools, _ := a.StudioMCPConnectors().Resolve(ctx, "u1", nil, true) - for _, t := range tools { - if t.Name == "slow" { - return t.Run(ctx, json.RawMessage(`{"text":"x"}`)) + for _, tool := range tools { + if tool.Name == "slow" { + return tool.Run(ctx, json.RawMessage(`{"text":"x"}`)) } } Fail("the connector offers no tool slow")