diff options
author | lain <lain@soykaf.club> | 2020-12-18 19:49:01 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-12-18 19:53:19 +0100 |
commit | 95a9bdfc374a013be47e74b25bdba5d91f51948b (patch) | |
tree | 8c978c04055f71704ddf6f862effdf9462654a88 /config/test.exs | |
parent | 713612c37725c81b0906b03528c9eaa474816c7d (diff) | |
download | pleroma-95a9bdfc374a013be47e74b25bdba5d91f51948b.tar.gz pleroma-95a9bdfc374a013be47e74b25bdba5d91f51948b.zip |
Tests: Use NullCache for async tests.
Caching can't work in async tests, so for them it is mocked to a
null cache that is always empty. Synchronous tests are stubbed
with the real Cachex, which is emptied after every test.
Diffstat (limited to 'config/test.exs')
-rw-r--r-- | config/test.exs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/test.exs b/config/test.exs index 2a20a03e7..397bc688e 100644 --- a/config/test.exs +++ b/config/test.exs @@ -121,6 +121,8 @@ config :tzdata, :autoupdate, :disabled config :pleroma, :mrf, policies: [] +config :pleroma, :cachex, provider: Pleroma.CachexMock + if File.exists?("./config/test.secret.exs") do import_config "test.secret.exs" else |