Merge branch 'restart-fix-for-mix-tasks' into 'develop'
[akkoma] / test / web / admin_api / admin_api_controller_test.exs
index 45b22ea2458d301bee8aa6c12822216eeef6412d..8009d4386333ca5228e3bc3e3c237eb4898649eb 100644 (file)
@@ -1880,10 +1880,10 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
                "@#{admin.nickname} deleted status ##{id}"
     end
 
-    test "returns error when status is not exist", %{conn: conn} do
+    test "returns 404 when the status does not exist", %{conn: conn} do
       conn = delete(conn, "/api/pleroma/admin/statuses/test")
 
-      assert json_response(conn, :bad_request) == "Could not delete"
+      assert json_response(conn, :not_found) == "Not found"
     end
   end