diff --git a/app/handlers_auth_test.go b/app/handlers_auth_test.go index bba365a..a391d0d 100644 --- a/app/handlers_auth_test.go +++ b/app/handlers_auth_test.go @@ -2,7 +2,6 @@ package main import ( "fmt" - "io" "net/http" "net/http/httptest" "testing" @@ -24,15 +23,14 @@ func TestAuth(t *testing.T) { // auth enabled app.isAuthEnabled = true resp, _ := http.Get(fmt.Sprintf("%s/", srv.URL)) - responseBody, _ := io.ReadAll(resp.Body) assert.Equal(t, http.StatusOK, resp.StatusCode) - assert.Contains(t, string(responseBody), `This requested URL was not found on this server

`) }