Skip to content

A platform for community discussion. Free, open, simple.

DEV: Reduce pool size for test environment to 1 (#25584)

Alan Guo Xiang Tanf9789e974bc4
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index c2b79b3a1cd..ed04cb8844c 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -242,7 +242,7 @@ jobs:
if: matrix.build_type == 'system' && matrix.target == 'plugins'
run: |
GLOBIGNORE="plugins/chat/*";
- PREFABRICATION=0 LOAD_PLUGINS=1 RAILS_ENABLE_TEST_LOG=1 RAILS_TEST_LOG_LEVEL=error PARALLEL_TEST_PROCESSORS=4 bin/turbo_rspec --use-runtime-info --profile=50 --verbose --format documentation plugins/*/spec/system
+ LOAD_PLUGINS=1 RAILS_ENABLE_TEST_LOG=1 RAILS_TEST_LOG_LEVEL=error PARALLEL_TEST_PROCESSORS=4 bin/turbo_rspec --use-runtime-info --profile=50 --verbose --format documentation plugins/*/spec/system
shell: bash
timeout-minutes: 30
diff --git a/config/database.yml b/config/database.yml
index a6d0bcf9f44..b196491c2ae 100644
--- a/config/database.yml
+++ b/config/database.yml
@@ -36,7 +36,8 @@ test:
adapter: postgresql
database: <%= test_db %>
min_messages: warning
- pool: 5
+ pool: 1
+ reaping_frequency: 0
host_names:
- test.localhost