test should only pass if the pool.size+1 checkout fails
Previously, any of the connection checkouts could have failed, and this test would pass.
This commit is contained in:
parent
4db4f90917
commit
34e54fa054
@ -89,10 +89,9 @@ def test_active_connection_in_use
|
||||
end
|
||||
|
||||
def test_full_pool_exception
|
||||
@pool.size.times { @pool.checkout }
|
||||
assert_raises(ConnectionTimeoutError) do
|
||||
(@pool.size + 1).times do
|
||||
@pool.checkout
|
||||
end
|
||||
@pool.checkout
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user