Skip to content

Commit 38e41a9

Browse files
authored
Update smoke-test.yml
1 parent f8ec3f6 commit 38e41a9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/smoke-test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@ jobs:
4444
export PGPASSWORD=test1234
4545
psql -h localhost -U postgres -c "ALTER SYSTEM SET max_connections = '100';"
4646
47+
- name: Verify Max Connection Limit
48+
run: |
49+
export PGHOST=localhost
50+
export PGUSER=postgres
51+
export PGPASSWORD=test1234
52+
MAX_CONNECTIONS=$(PGPASSWORD=test1234 psql -h localhost -U postgres -d postgres -c "SHOW max_connections;" | grep -oP '(?<=row )[0-9]+')
53+
if [ "$MAX_CONNECTIONS" -ne "100" ]; then
54+
echo "Max connections is not set correctly!"
55+
exit 1
56+
fi
57+
4758
- name: Run the smoke test
4859
run: |
4960
set -eu

0 commit comments

Comments
 (0)