summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2023-09-24 22:52:41 +0200
committertusooa <tusooa@kazv.moe>2023-12-14 20:11:01 -0500
commit35090f6eac3a4c63d52d37fe3f92b382d736b47c (patch)
treeea2c7a1c8bc87db53bb6e98b4462dc93472e7f67 /test
parent272271d93935946ea5362d572de9a8cc3372883c (diff)
downloadpleroma-35090f6eac3a4c63d52d37fe3f92b382d736b47c.tar.gz
pleroma-35090f6eac3a4c63d52d37fe3f92b382d736b47c.zip
TwitterAPI: Return proper error when healthcheck is disabled
Diffstat (limited to 'test')
-rw-r--r--test/pleroma/web/twitter_api/util_controller_test.exs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pleroma/web/twitter_api/util_controller_test.exs b/test/pleroma/web/twitter_api/util_controller_test.exs
index a4da23635..d06ae71aa 100644
--- a/test/pleroma/web/twitter_api/util_controller_test.exs
+++ b/test/pleroma/web/twitter_api/util_controller_test.exs
@@ -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