mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 08:57:10 -06:00
DEV: Reduce pool size for test environment to 1 (#25584)
Why this change? I have been investigating transaction related issues with our system tests and I have a hard time figuring out what is causing the problem. To help simplify our environment further, we will set the pool size in the test environment to 1 so that it is impossible for us to be fetching a different connection between the threads since they all share the connection pool. Also set `reaping_frequency` to `0` to ensure we don't reap any connection ensuring the same connection is always used.
This commit is contained in:
parent
95a2d285d3
commit
f9789e974b
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@ -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
|
||||
|
||||
|
@ -36,7 +36,8 @@ test:
|
||||
adapter: postgresql
|
||||
database: <%= test_db %>
|
||||
min_messages: warning
|
||||
pool: 5
|
||||
pool: 1
|
||||
reaping_frequency: 0
|
||||
host_names:
|
||||
- test.localhost
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user