mirror of
https://github.com/mperham/connection_pool
synced 2023-03-27 23:22:21 -04:00
Do not wait at all for pop
This commit is contained in:
parent
ca07980e46
commit
2c52af7dee
1 changed files with 2 additions and 2 deletions
|
@ -34,10 +34,10 @@ class TestConnectionPoolTimedStack < Minitest::Test
|
|||
|
||||
def test_pop_empty
|
||||
e = assert_raises Timeout::Error do
|
||||
@stack.pop 0.0000001
|
||||
@stack.pop 0
|
||||
end
|
||||
|
||||
assert_match %r%Waited [\de.-]+ sec%, e.message
|
||||
assert_equal 'Waited 0 sec', e.message
|
||||
end
|
||||
|
||||
def test_pop_wait
|
||||
|
|
Loading…
Reference in a new issue