diff --git a/.golangci.yml b/.golangci.yml index ce902ad9..435548d6 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -85,7 +85,6 @@ linters: - whitespace - gofumpt - godot - # - gofmt - gocritic - gocognit - deadcode diff --git a/test/e2e/pkg/request/request.go b/test/e2e/pkg/request/request.go index 6d264783..939c8268 100644 --- a/test/e2e/pkg/request/request.go +++ b/test/e2e/pkg/request/request.go @@ -220,6 +220,7 @@ func (r *Request) sendHTTPRequest(method, urlstr string, host string, headers ma if err != nil { return nil, err } + defer resp.Body.Close() ret := &Response{Code: resp.StatusCode, Header: resp.Header} buf, err := io.ReadAll(resp.Body)