Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorfeistel <6742251-feistel@users.noreply.gitlab.com>2021-12-15 22:30:42 +0300
committerJaime Martinez <jmartinez@gitlab.com>2022-02-02 02:20:24 +0300
commitc387e5459bd486a966885d82070859653f37ca45 (patch)
treeb111a58986b9bef66f59ac05c34c39880482176f /test
parentd00c2a073ea297c54139033a2433f897d0afaf24 (diff)
lint: fix linter issues
Diffstat (limited to 'test')
-rw-r--r--test/acceptance/acme_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/acceptance/acme_test.go b/test/acceptance/acme_test.go
index f0259e05..77c4d6c0 100644
--- a/test/acceptance/acme_test.go
+++ b/test/acceptance/acme_test.go
@@ -41,8 +41,8 @@ func TestAcmeChallengesWhenItIsNotConfigured(t *testing.T) {
rsp, err := GetRedirectPage(t, httpListener, "withacmechallenge.domain.com",
test.token)
- defer rsp.Body.Close()
require.NoError(t, err)
+ defer rsp.Body.Close()
require.Equal(t, test.expectedStatus, rsp.StatusCode)
body, err := io.ReadAll(rsp.Body)
require.NoError(t, err)
@@ -82,8 +82,8 @@ func TestAcmeChallengesWhenItIsConfigured(t *testing.T) {
rsp, err := GetRedirectPage(t, httpListener, "withacmechallenge.domain.com",
test.token)
- defer rsp.Body.Close()
require.NoError(t, err)
+ defer rsp.Body.Close()
require.Equal(t, test.expectedStatus, rsp.StatusCode)
body, err := io.ReadAll(rsp.Body)
require.NoError(t, err)