From d0ad9e03a3f9d558fb33e9600071d00cd12bf9bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Pa=C3=9F?= <22845248+mpass99@users.noreply.github.com> Date: Mon, 1 Aug 2022 14:35:52 +0200 Subject: [PATCH] Suppress request noctx linter. --- tests/helpers/test_helpers.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/helpers/test_helpers.go b/tests/helpers/test_helpers.go index c1b6553..32dfb01 100644 --- a/tests/helpers/test_helpers.go +++ b/tests/helpers/test_helpers.go @@ -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