Skip to content

Commit 22360d3

Browse files
committed
Fix parallel connections with PostgreSQL tests
1 parent 99e73d8 commit 22360d3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/coder.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,14 @@ jobs:
199199
-e POSTGRES_DB=postgres \
200200
-e PGDATA=/tmp \
201201
-p 5432:5432 \
202-
-d postgres:11
203-
pg_isready -h 127.0.0.1
202+
-d postgres:11 \
203+
-c shared_buffers=1GB \
204+
-c max_connections=1000
205+
while ! pg_isready -h 127.0.0.1
206+
do
207+
echo "$(date) - waiting for database to start"
208+
sleep 0.5
209+
done
204210
205211
- name: Test with PostgreSQL Database
206212
if: runner.os == 'Linux'

0 commit comments

Comments
 (0)