Test config: Raise pool size for postgres.
authorlain <lain@soykaf.club>
Mon, 21 Dec 2020 11:31:12 +0000 (12:31 +0100)
committerlain <lain@soykaf.club>
Mon, 21 Dec 2020 11:31:12 +0000 (12:31 +0100)
Given all the async tests, this can become a bottleneck.

config/test.exs

index 397bc688ec52cbf5fc9e755614e3135f0fa1fb64..c4fd5c52f141cbb5be774b8568d0724b7b45f774 100644 (file)
@@ -47,7 +47,10 @@ config :pleroma, Pleroma.Repo,
   password: "postgres",
   database: "pleroma_test",
   hostname: System.get_env("DB_HOST") || "localhost",
-  pool: Ecto.Adapters.SQL.Sandbox
+  pool: Ecto.Adapters.SQL.Sandbox,
+  pool_size: 50
+
+config :pleroma, :dangerzone, override_repo_pool_size: true
 
 # Reduce hash rounds for testing
 config :pbkdf2_elixir, rounds: 1