From f3912b2d9848632ff475fa0760f2c4390c448bfb Mon Sep 17 00:00:00 2001 From: Vladimir Simakhin Date: Sat, 18 May 2024 14:45:01 +0200 Subject: [PATCH] fix tests --- app/handlers_auth_test.go | 10 ++-------- app/handlers_aux_test.go | 3 --- 2 files changed, 2 insertions(+), 11 deletions(-) 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

`) }