mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
changes needed due to 3c91978d36
add posibility to inspect availability of a resource in a pool (testing only) allow access to internal connection pool of db (testing only)
This commit is contained in:
parent
3c91978d36
commit
8d891a5a4e
4 changed files with 28 additions and 1 deletions
|
@ -124,7 +124,8 @@ describe DB::Statement do
|
|||
expect_raises do
|
||||
db.exec "raise"
|
||||
end
|
||||
db.@in_pool.should be_true
|
||||
DummyDriver::DummyConnection.connections.size.should eq(1)
|
||||
db.pool.is_available?(DummyDriver::DummyConnection.connections.first)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue