File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -366,8 +366,11 @@ echo -e "\n<########## TEST GRAPHQL-ENGINE WITH HORIZONTAL SCALING ########>\n"
366
366
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
+ # create pgbouncer user
370
+ useradd pgbouncer
371
+
369
372
# start pgbouncer
370
- pgbouncer -d /root/graphql-engine/.circleci/pgbouncer/pgbouncer.ini
373
+ su -c " pgbouncer -d /root/graphql-engine/.circleci/pgbouncer/pgbouncer.ini" pgbouncer
371
374
372
375
# start 1st server
373
376
" $GRAPHQL_ENGINE " --database-url " $HASURA_HS_TEST_DB " serve >> " $OUTPUT_FOLDER /graphql-engine.log" 2>&1 & PID=$!
@@ -386,7 +389,7 @@ pytest -vv --hge-url="$HGE_URL" --pg-url="$HASURA_GRAPHQL_DATABASE_URL" --test-h
386
389
psql " postgres://postgres:postgres@localhost:6543/pgbouncer" -c " SHUTDOWN;"
387
390
388
391
# start pgbouncer again
389
- pgbouncer -d /root/graphql-engine/.circleci/pgbouncer/pgbouncer.ini
392
+ su -c " pgbouncer -d /root/graphql-engine/.circleci/pgbouncer/pgbouncer.ini" pgbouncer
390
393
391
394
# run test
392
395
pytest -vv --hge-url=" $HGE_URL " --pg-url=" $HASURA_GRAPHQL_DATABASE_URL " --test-hge-scale-url=" http://localhost:8081" test_horizontal_scale.py
You can’t perform that action at this time.
0 commit comments