Explicit shard selection; Rails tests (#24)

* Explicit shard selection; Rails tests

* try running ruby tests

* try without lockfile

* aha

* ok
This commit is contained in:
Lev Kokotov
2022-02-18 09:43:07 -08:00
committed by GitHub
parent aa796289bf
commit bbacb9cf01
7 changed files with 170 additions and 14 deletions

View File

@@ -34,6 +34,14 @@ 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
#
# ActiveRecord tests!
#
cd tests/ruby
sudo gem install bundler
bundle install
ruby tests.rb
# Attempt clean shut down
killall pgcat -s SIGINT