diff options
author | feistel <6742251-feistel@users.noreply.gitlab.com> | 2021-11-22 23:17:35 +0300 |
---|---|---|
committer | feistel <6742251-feistel@users.noreply.gitlab.com> | 2021-11-22 23:17:35 +0300 |
commit | 51e351cd1ac6727f29acb13826b60b862541dfcb (patch) | |
tree | 06d3b2531c03a2c5d357d1786d5615ba157a2425 /internal/handlers | |
parent | c494cbb93ed7cb2fd64233073025d73964807d0c (diff) |
lint: remove outdated nolint directives
Diffstat (limited to 'internal/handlers')
-rw-r--r-- | internal/handlers/handlers_test.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/internal/handlers/handlers_test.go b/internal/handlers/handlers_test.go index a5044d09..d71e9b91 100644 --- a/internal/handlers/handlers_test.go +++ b/internal/handlers/handlers_test.go @@ -74,7 +74,6 @@ func TestNotFoundWithTokenIsNotHandled(t *testing.T) { reqURL, _ := url.Parse("/") r := &http.Request{URL: reqURL} response := &http.Response{StatusCode: http.StatusNotFound} - // nolint:bodyclose // TODO investigate https://gitlab.com/gitlab-org/gitlab-pages/-/issues/606 handled := handlers.checkIfLoginRequiredOrInvalidToken(w, r, "token")(response) require.False(t, handled) @@ -116,7 +115,6 @@ func TestForbiddenWithTokenIsNotHandled(t *testing.T) { w := httptest.NewRecorder() r := httptest.NewRequest(http.MethodGet, "/", nil) response := &http.Response{StatusCode: tc.StatusCode} - // nolint:bodyclose // TODO investigate https://gitlab.com/gitlab-org/gitlab-pages/-/issues/606 handled := handlers.checkIfLoginRequiredOrInvalidToken(w, r, tc.Token)(response) require.Equal(t, tc.Handled, handled) @@ -135,7 +133,6 @@ func TestNotFoundWithoutTokenIsNotHandledWhenNotAuthSupport(t *testing.T) { w := httptest.NewRecorder() r := httptest.NewRequest(http.MethodGet, "/", nil) response := &http.Response{StatusCode: http.StatusNotFound} - // nolint:bodyclose // TODO investigate https://gitlab.com/gitlab-org/gitlab-pages/-/issues/606 handled := handlers.checkIfLoginRequiredOrInvalidToken(w, r, "")(response) require.False(t, handled) @@ -152,7 +149,6 @@ func TestNotFoundWithoutTokenIsHandled(t *testing.T) { w := httptest.NewRecorder() r := httptest.NewRequest(http.MethodGet, "/", nil) response := &http.Response{StatusCode: http.StatusNotFound} - // nolint:bodyclose // TODO investigate https://gitlab.com/gitlab-org/gitlab-pages/-/issues/606 handled := handlers.checkIfLoginRequiredOrInvalidToken(w, r, "")(response) require.True(t, handled) @@ -169,7 +165,6 @@ func TestInvalidTokenResponseIsHandled(t *testing.T) { w := httptest.NewRecorder() r := httptest.NewRequest(http.MethodGet, "/", nil) response := &http.Response{StatusCode: http.StatusUnauthorized} - // nolint:bodyclose // TODO investigate https://gitlab.com/gitlab-org/gitlab-pages/-/issues/606 handled := handlers.checkIfLoginRequiredOrInvalidToken(w, r, "token")(response) require.True(t, handled) |