logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 8e37f1988332e596a21ed3ce22b6c71564cd434b
parent ca5766c0a7ac81adc5c45e6ffee55c68612d82ab
Author: lain <lain@soykaf.club>
Date:   Tue, 19 Mar 2024 07:44:05 +0000

Merge branch 'test-improvements' into 'develop'

Tests: Explicitly set db pool size and max cases to the same value.

See merge request pleroma/pleroma!4094

Diffstat:

Achangelog.d/test-improvements.skip0
Mconfig/test.exs2+-
Mtest/test_helper.exs2++
3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/changelog.d/test-improvements.skip b/changelog.d/test-improvements.skip diff --git a/config/test.exs b/config/test.exs @@ -49,7 +49,7 @@ config :pleroma, Pleroma.Repo, hostname: System.get_env("DB_HOST") || "localhost", port: System.get_env("DB_PORT") || "5432", pool: Ecto.Adapters.SQL.Sandbox, - pool_size: 50 + pool_size: System.schedulers_online() * 2 config :pleroma, :dangerzone, override_repo_pool_size: true diff --git a/test/test_helper.exs b/test/test_helper.exs @@ -4,6 +4,8 @@ Code.put_compiler_option(:warnings_as_errors, true) +ExUnit.configure(max_cases: System.schedulers_online()) + ExUnit.start(exclude: [:federated, :erratic]) if match?({:unix, :darwin}, :os.type()) do