chore(deps): Bump all Go dependencies (#1674)

* chore(deps): Bump all Go dependencies

* test: Use httptest.NewRequest instead of http.NewRequest
This commit is contained in:
TwiN
2026-05-19 19:52:26 -04:00
committed by GitHub
parent 154ee6e055
commit ed1107b41a
5 changed files with 178 additions and 182 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ package api
import (
"io"
"net/http"
"net/http/httptest"
"testing"
"github.com/TwiN/gatus/v5/security"
@@ -27,7 +28,7 @@ func TestConfigHandler_ServeHTTP(t *testing.T) {
t.Error("expected err to be nil, but was", err)
}
// Test the config handler
request, _ := http.NewRequest("GET", "/api/v1/config", http.NoBody)
request := httptest.NewRequest("GET", "/api/v1/config", http.NoBody)
response, err := app.Test(request)
if err != nil {
t.Error("expected err to be nil, but was", err)