diff options
author | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-09-07 20:57:38 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-09-10 21:51:59 +0300 |
commit | 2c2094d4b2722cf511e3db8288c3754a48038f05 (patch) | |
tree | abe83a93be7eadc15d8fb2d49279cf1656340228 /test | |
parent | 4954667fb24ee6ab7b1bf3b676f7e88a582130cf (diff) | |
download | pleroma-2c2094d4b2722cf511e3db8288c3754a48038f05.tar.gz |
configurable lifetime for ephemeral activities
Diffstat (limited to 'test')
-rw-r--r-- | test/web/mastodon_api/controllers/status_controller_test.exs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/web/mastodon_api/controllers/status_controller_test.exs b/test/web/mastodon_api/controllers/status_controller_test.exs index 82ea73898..633a25e50 100644 --- a/test/web/mastodon_api/controllers/status_controller_test.exs +++ b/test/web/mastodon_api/controllers/status_controller_test.exs @@ -129,8 +129,8 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do test "it fails to create a status if `expires_in` is less or equal than an hour", %{ conn: conn } do - # 1 hour - expires_in = 60 * 60 + # 1 minute + expires_in = 1 * 60 assert %{"error" => "Expiry date is too soon"} = conn @@ -141,8 +141,8 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do }) |> json_response_and_validate_schema(422) - # 30 minutes - expires_in = 30 * 60 + # 5 minutes + expires_in = 5 * 60 assert %{"error" => "Expiry date is too soon"} = conn |