mirror of
https://github.com/TwiN/gatus.git
synced 2026-09-13 03:24:29 +00:00
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:
+2
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user