From a5d0cbbe446b202572804a028e64842d18bab93c Mon Sep 17 00:00:00 2001 From: Tim Birkett <57101177+js-timbirkett@users.noreply.github.com> Date: Fri, 13 May 2022 10:14:38 +0100 Subject: [PATCH] chore: fix a linting error (#834) Signed-off-by: Tim Birkett --- httpd/httpd_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httpd/httpd_test.go b/httpd/httpd_test.go index b20f04ab..6051d414 100644 --- a/httpd/httpd_test.go +++ b/httpd/httpd_test.go @@ -8905,14 +8905,14 @@ func TestMethodNotAllowedMock(t *testing.T) { } func TestHealthCheck(t *testing.T) { - req, _ := http.NewRequest(http.MethodGet, "/healthz", nil) + req, _ := http.NewRequest(http.MethodGet, healthzPath, nil) rr := executeRequest(req) checkResponseCode(t, http.StatusOK, rr) assert.Equal(t, "ok", rr.Body.String()) } func TestRobotsTxtCheck(t *testing.T) { - req, _ := http.NewRequest(http.MethodGet, "/robots.txt", nil) + req, _ := http.NewRequest(http.MethodGet, robotsTxtPath, nil) rr := executeRequest(req) checkResponseCode(t, http.StatusOK, rr) assert.Equal(t, "User-agent: *\nDisallow: /", rr.Body.String())