Merge branch 'healthcheck-disabled-error' into 'develop'

TwitterAPI: Return proper error when healthcheck is disabled

See merge request pleroma/pleroma!3953
This commit is contained in:
Haelwenn 2023-11-14 09:41:26 +00:00
commit bf2d6abaf2
3 changed files with 6 additions and 2 deletions

View file

@ -106,7 +106,7 @@ defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do
|> get("/api/pleroma/healthcheck")
|> json_response_and_validate_schema(503)
assert response == %{}
assert response == %{"error" => "Healthcheck disabled"}
end
test "returns 200 when healthcheck enabled and all ok", %{conn: conn} do