From 87ff1f907c75b673a07db5d8b4375a17d1ff3fd1 Mon Sep 17 00:00:00 2001 From: Mathias Bergqvist Date: Sat, 2 May 2026 14:55:24 +0200 Subject: [PATCH] fix(ingestion): silence errcheck on resp.Body.Close in integration test CI's golangci-lint flagged the un-checked deferred Close. Match the existing project pattern (defer func() { _ = ... }()). Co-Authored-By: Claude Opus 4.7 (1M context) --- ingestion/internal/mcp/integration_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ingestion/internal/mcp/integration_test.go b/ingestion/internal/mcp/integration_test.go index 898c654..98f1735 100644 --- a/ingestion/internal/mcp/integration_test.go +++ b/ingestion/internal/mcp/integration_test.go @@ -27,7 +27,7 @@ func TestMCPMountedHandler(t *testing.T) { require.NoError(t, err) resp, err := http.Post(ts.URL+"/mcp", "application/json", bytes.NewReader(body)) require.NoError(t, err) - defer resp.Body.Close() + defer func() { _ = resp.Body.Close() }() assert.Equal(t, http.StatusOK, resp.StatusCode) out, _ := io.ReadAll(resp.Body)