Fix test db connections: increase pool size and timeout
This commit is contained in:
parent
bebd7f6fe2
commit
195f1dbc88
1 changed files with 4 additions and 1 deletions
|
|
@ -12,7 +12,10 @@ config :mv, Mv.Repo,
|
||||||
port: System.get_env("TEST_POSTGRES_PORT", "5000"),
|
port: System.get_env("TEST_POSTGRES_PORT", "5000"),
|
||||||
database: "mv_test#{System.get_env("MIX_TEST_PARTITION")}",
|
database: "mv_test#{System.get_env("MIX_TEST_PARTITION")}",
|
||||||
pool: Ecto.Adapters.SQL.Sandbox,
|
pool: Ecto.Adapters.SQL.Sandbox,
|
||||||
pool_size: System.schedulers_online() * 4
|
pool_size: System.schedulers_online() * 8,
|
||||||
|
queue_target: 5000,
|
||||||
|
queue_interval: 1000,
|
||||||
|
timeout: 30_000
|
||||||
|
|
||||||
# We don't run a server during test. If one is required,
|
# We don't run a server during test. If one is required,
|
||||||
# you can enable the server option below.
|
# you can enable the server option below.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue