X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fstats.ex;h=e5c9c668baef9bafc9ee6b1658481cc36faf0af7;hb=64553ebae2f415b309df5f6b1c13b9972bc65aaa;hp=e7f8d272ccf28cb5f41ae7bd4afa33ea714a9d7f;hpb=c5434dbefc5e6a25ffb72debe8ed9e09d77bf885;p=akkoma diff --git a/lib/pleroma/stats.ex b/lib/pleroma/stats.ex index e7f8d272c..e5c9c668b 100644 --- a/lib/pleroma/stats.ex +++ b/lib/pleroma/stats.ex @@ -23,6 +23,7 @@ defmodule Pleroma.Stats do @impl true def init(_args) do + if Pleroma.Config.get(:env) == :test, do: :ok = Ecto.Adapters.SQL.Sandbox.checkout(Repo) {:ok, nil, {:continue, :calculate_stats}} end