mirror of
https://github.com/mperham/connection_pool
synced 2023-03-27 23:22:21 -04:00
Test TimedStack#pop
This commit is contained in:
parent
bb22327529
commit
8d8554ce7b
1 changed files with 8 additions and 0 deletions
|
@ -15,5 +15,13 @@ class TestConnectionPoolTimedStack < Minitest::Test
|
|||
refute_empty @stack
|
||||
end
|
||||
|
||||
def test_pop
|
||||
e = assert_raises Timeout::Error do
|
||||
@stack.pop 0.0000001
|
||||
end
|
||||
|
||||
assert_match %r%Waited [\de.-]+ sec%, e.message
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue