mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-25 00:50:31 +00:00
chore: fix a linting error (#834)
Signed-off-by: Tim Birkett <tim.birkett@sainsburys.co.uk>
This commit is contained in:
parent
7b1a0d3cd3
commit
a5d0cbbe44
1 changed files with 2 additions and 2 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue