Skip to content

Commit

Permalink
fix pgbouncer config path
Browse files Browse the repository at this point in the history
  • Loading branch information
arvi3411301 committed Mar 7, 2019
1 parent cf28c95 commit 4472a21
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .circleci/test-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ HASURA_HS_TEST_DB='postgres://postgres:postgres@localhost:6543/hs_hge_test'
psql "$HASURA_GRAPHQL_DATABASE_URL" -c "create database hs_hge_test;"

# start pgbouncer
pgbouncer -d pgbouncer/pgbouncer.ini
pgbouncer -d /root/graphql-engine/.circleci/pgbouncer/pgbouncer.ini

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

# start pgbouncer again
pgbouncer -d pgbouncer/pgbouncer.ini
pgbouncer -d /root/graphql-engine/.circleci/pgbouncer/pgbouncer.ini

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

# Shutdown pgbouncer
psql "postgres://postgres:postgres@localhost:6543/pgbouncer" -c "SHUTDOWN;"
kill -INT $PID
kill -INT $HS_PID
psql "$HASURA_GRAPHQL_DATABASE_URL" -c "drop database hs_hge_test;"
Expand Down

0 comments on commit 4472a21

Please sign in to comment.