Skip to content

Commit 4472a21

Browse files
committed
fix pgbouncer config path
1 parent cf28c95 commit 4472a21

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.circleci/test-server.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ HASURA_HS_TEST_DB='postgres://postgres:postgres@localhost:6543/hs_hge_test'
367367
psql "$HASURA_GRAPHQL_DATABASE_URL" -c "create database hs_hge_test;"
368368

369369
# start pgbouncer
370-
pgbouncer -d pgbouncer/pgbouncer.ini
370+
pgbouncer -d /root/graphql-engine/.circleci/pgbouncer/pgbouncer.ini
371371

372372
# start 1st server
373373
"$GRAPHQL_ENGINE" --database-url "$HASURA_HS_TEST_DB" serve >> "$OUTPUT_FOLDER/graphql-engine.log" 2>&1 & PID=$!
@@ -386,11 +386,13 @@ pytest -vv --hge-url="$HGE_URL" --pg-url="$HASURA_GRAPHQL_DATABASE_URL" --test-h
386386
psql "postgres://postgres:postgres@localhost:6543/pgbouncer" -c "SHUTDOWN;"
387387

388388
# start pgbouncer again
389-
pgbouncer -d pgbouncer/pgbouncer.ini
389+
pgbouncer -d /root/graphql-engine/.circleci/pgbouncer/pgbouncer.ini
390390

391391
# run test
392392
pytest -vv --hge-url="$HGE_URL" --pg-url="$HASURA_GRAPHQL_DATABASE_URL" --test-hge-scale-url="http://localhost:8081" test_horizontal_scale.py
393393

394+
# Shutdown pgbouncer
395+
psql "postgres://postgres:postgres@localhost:6543/pgbouncer" -c "SHUTDOWN;"
394396
kill -INT $PID
395397
kill -INT $HS_PID
396398
psql "$HASURA_GRAPHQL_DATABASE_URL" -c "drop database hs_hge_test;"

0 commit comments

Comments
 (0)