File tree 2 files changed +20
-1
lines changed
2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 37
37
- name : Install psql
38
38
run : sudo apt install postgresql-client
39
39
40
+ - name : Set Max Connection Limit
41
+ run : |
42
+ export PGHOST=localhost
43
+ export PGUSER=postgres
44
+ export PGPASSWORD=test1234
45
+ psql -h localhost -U postgres -c "ALTER SYSTEM SET max_connections = '100';"
46
+
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 "10" ]; then
54
+ echo "Max connections is not set correctly!"
55
+ exit 1
56
+ fi
57
+
40
58
- name : Run the smoke test
41
59
run : |
42
60
set -eu
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ services:
11
11
environment :
12
12
POSTGRES_USER : timescaledb
13
13
POSTGRES_PASSWORD : postgrespassword
14
-
14
+ POSTGRES_MAX_CONNECTIONS : 10
15
+
15
16
graphql-engine :
16
17
image : hasura/graphql-engine:latest
17
18
ports :
You can’t perform that action at this time.
0 commit comments