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)