projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'fix/2473-purge-expired-activities-duplicates' into 'develop'
[akkoma]
/
test
/
pleroma
/
web
/
plugs
/
cache_test.exs
diff --git
a/test/pleroma/web/plugs/cache_test.exs
b/test/pleroma/web/plugs/cache_test.exs
index 93a66f5d30bba870188ad8d63b1ea7f3a95fe9da..0ceab6cab09e6a47fa9be0681af9a669ce5f6536 100644
(file)
--- a/
test/pleroma/web/plugs/cache_test.exs
+++ b/
test/pleroma/web/plugs/cache_test.exs
@@
-1,9
+1,10
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.Plugs.CacheTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.Plugs.CacheTest do
- use ExUnit.Case, async: true
+ # Relies on Cachex, has to stay synchronous
+ use Pleroma.DataCase
use Plug.Test
alias Pleroma.Web.Plugs.Cache
use Plug.Test
alias Pleroma.Web.Plugs.Cache
@@
-24,11
+25,6
@@
defmodule Pleroma.Web.Plugs.CacheTest do
@ttl 5
@ttl 5
- setup do
- Cachex.clear(:web_resp_cache)
- :ok
- end
-
test "caches a response" do
assert @miss_resp ==
conn(:get, "/")
test "caches a response" do
assert @miss_resp ==
conn(:get, "/")