diff options
author | lain <lain@soykaf.club> | 2020-12-18 13:18:17 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-12-18 13:18:17 +0100 |
commit | b4b68b71fc88de7ee3387aab1071f2cea257e54d (patch) | |
tree | d0d5cdb140fdfd3c368b9961ac7b7b372192b1f1 /test/pleroma/web/mastodon_api/controllers/status_controller_test.exs | |
parent | c1129ff6746b20b164b7bc6dadf851f396ef29ad (diff) |
Tests: Remove unneeded explicit cachex use.
Only use cachex when we're actually testing it.
Diffstat (limited to 'test/pleroma/web/mastodon_api/controllers/status_controller_test.exs')
-rw-r--r-- | test/pleroma/web/mastodon_api/controllers/status_controller_test.exs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs b/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs index 30d542dfa..de542e5df 100644 --- a/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs +++ b/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs @@ -67,10 +67,6 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do "sensitive" => "0" }) - {:ok, ttl} = Cachex.ttl(:idempotency_cache, idempotency_key) - # Six hours - assert ttl > :timer.seconds(6 * 60 * 60 - 1) - assert %{"content" => "cofe", "id" => id, "spoiler_text" => "2hu", "sensitive" => false} = json_response_and_validate_schema(conn_one, 200) |