Suppress request noctx linter.

This commit is contained in:
Maximilian Paß
2022-08-01 14:35:52 +02:00
parent c150e8291f
commit d0ad9e03a3

View File

@ -143,6 +143,7 @@ func HTTPDelete(url string, body io.Reader) (response *http.Response, err error)
// HTTPPatch sends a Patch Http Request with body to the passed url.
func HTTPPatch(url, contentType string, body io.Reader) (response *http.Response, err error) {
//nolint:noctx // we don't need a http.NewRequestWithContext in our tests
req, err := httpRequest(http.MethodPatch, url, body)
if err != nil {
return nil, err
@ -157,6 +158,7 @@ func HTTPPatch(url, contentType string, body io.Reader) (response *http.Response
}
func HTTPPut(url string, body io.Reader) (response *http.Response, err error) {
//nolint:noctx // we don't need a http.NewRequestWithContext in our tests
req, err := httpRequest(http.MethodPut, url, body)
if err != nil {
return nil, err