Skip to content

Commit c9b19f3

Browse files
authored
CI: raise max connections, pool size for redis/pg in server tests (#988)
## Motivation It's not uncommon for tests to fail due to a pool timeout. ## Solution Raise the connection limits to help avoid this.
2 parents 4f3cc21 + d38737c commit c9b19f3

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

server/run-tests.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ export DATABASE_URL="postgresql://postgres:postgres@localhost:5432/postgres"
99
export SVIX_JWT_SECRET="test value"
1010
export SVIX_LOG_LEVEL="info"
1111
export SVIX_WHITELIST_SUBNETS="[127.0.0.1/32]"
12+
export SVIX_DB_POOL_MAX_SIZE="500"
13+
export SVIX_REDIS_POOL_MAX_SIZE="10000"
1214

1315
echo "*********** RUN 1 ***********"
1416
SVIX_QUEUE_TYPE="redis" \

server/testing-docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ version: "3.7"
22
services:
33
postgres:
44
image: postgres:13.4
5+
command: postgres -c 'max_connections=500'
56
volumes:
67
- "postgres-data:/var/lib/postgresql/data/"
78
environment:

0 commit comments

Comments
 (0)