health/handler_test.go
Function TestPublicHealthHandler
has 57 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func TestPublicHealthHandler(t *testing.T) {
ctx := context.Background()
doCORSRequest := func(t *testing.T, endpoint string) *http.Response {
req, err := http.NewRequest(http.MethodGet, endpoint, nil)