summaryrefslogtreecommitdiff
path: root/internal/handlers/handler_health_test.go
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2023-04-15 15:03:14 +1000
committerGitHub <noreply@github.com>2023-04-15 15:03:14 +1000
commiteaddf11df65ae996df46c388529bef09ac80a707 (patch)
treea5574e5fa759319f3ed0bc7c04d08ca39f87a782 /internal/handlers/handler_health_test.go
parentd2cdbb23f3f5f26209b931c60bb6dee4c2229251 (diff)
refactor: http verbs etc (#5248)
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/handlers/handler_health_test.go')
-rw-r--r--internal/handlers/handler_health_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/handlers/handler_health_test.go b/internal/handlers/handler_health_test.go
index f268fccf7..2b2857c04 100644
--- a/internal/handlers/handler_health_test.go
+++ b/internal/handlers/handler_health_test.go
@@ -4,6 +4,7 @@ import (
"testing"
"github.com/stretchr/testify/assert"
+ "github.com/valyala/fasthttp"
"github.com/authelia/authelia/v4/internal/authentication"
"github.com/authelia/authelia/v4/internal/mocks"
@@ -21,6 +22,6 @@ func TestHealthOk(t *testing.T) {
HealthGET(mock.Ctx)
- assert.Equal(t, 200, mock.Ctx.Response.StatusCode())
+ assert.Equal(t, fasthttp.StatusOK, mock.Ctx.Response.StatusCode())
assert.Equal(t, okMessageBytes, mock.Ctx.Response.Body())
}