File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -367,7 +367,7 @@ HASURA_HS_TEST_DB='postgres://postgres:postgres@localhost:6543/hs_hge_test'
367
367
psql " $HASURA_GRAPHQL_DATABASE_URL " -c " create database hs_hge_test;"
368
368
369
369
# start pgbouncer
370
- pgbouncer -d pgbouncer/pgbouncer.ini
370
+ pgbouncer -d /root/graphql-engine/.circleci/ pgbouncer/pgbouncer.ini
371
371
372
372
# start 1st server
373
373
" $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
386
386
psql " postgres://postgres:postgres@localhost:6543/pgbouncer" -c " SHUTDOWN;"
387
387
388
388
# start pgbouncer again
389
- pgbouncer -d pgbouncer/pgbouncer.ini
389
+ pgbouncer -d /root/graphql-engine/.circleci/ pgbouncer/pgbouncer.ini
390
390
391
391
# run test
392
392
pytest -vv --hge-url=" $HGE_URL " --pg-url=" $HASURA_GRAPHQL_DATABASE_URL " --test-hge-scale-url=" http://localhost:8081" test_horizontal_scale.py
393
393
394
+ # Shutdown pgbouncer
395
+ psql " postgres://postgres:postgres@localhost:6543/pgbouncer" -c " SHUTDOWN;"
394
396
kill -INT $PID
395
397
kill -INT $HS_PID
396
398
psql " $HASURA_GRAPHQL_DATABASE_URL " -c " drop database hs_hge_test;"
You can’t perform that action at this time.
0 commit comments