allow DB to use a connection pool.

allow Driver to parse connection pool options for extensibility.
fix waiting_resource counter after a timeout was generated.
This commit is contained in:
Brian J. Cardiff 2016-07-07 15:50:09 -03:00
parent b8cabee956
commit a2c22c16cf
7 changed files with 46 additions and 22 deletions

View file

@ -61,7 +61,7 @@ describe DB do
it "should raise if the sole connection is been used" do
with_dummy do |db|
db.query "1" do |rs|
expect_raises Exception, /DB Pool Exhausted/ do
expect_raises DB::PoolTimeout do
db.scalar "2"
end
end