TwitterAPI: Return proper error when healthcheck is disabled
This commit is contained in:
parent
272271d939
commit
35090f6eac
3 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue