test session mode and config reload for real (#33)

* test session mode and config reload for real

* period

* run them at the end

* typo

* wrong dir
This commit is contained in:
Lev Kokotov
2022-02-21 00:16:33 -08:00
committed by GitHub
parent 86941d62e4
commit f805b43a08
2 changed files with 11 additions and 4 deletions

View File

@@ -34,9 +34,6 @@ psql -e -h 127.0.0.1 -p 6432 -f tests/sharding/query_routing_test_select.sql > /
# Replica/primary selection & more sharding tests
psql -e -h 127.0.0.1 -p 6432 -f tests/sharding/query_routing_test_primary_replica.sql > /dev/null
# Test reload config
kill -SIGHUP $(pgrep pgcat)
#
# ActiveRecord tests!
#
@@ -45,6 +42,16 @@ sudo gem install bundler
bundle install
ruby tests.rb
cd ../../
# Test session mode (and config reload)
sed -i 's/pool_mode = "transaction"/pool_mode = "session"/' pgcat.toml
# Reload config
kill -SIGHUP $(pgrep pgcat)
# Prepared statements that will only work in session mode
pgbench -h 127.0.0.1 -p 6432 -t 500 -c 2 --protocol prepared
# Attempt clean shut down
killall pgcat -s SIGINT