1
0
Fork 0
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:
Eric Hodel 2014-02-06 19:02:06 -08:00
parent ca07980e46
commit 2c52af7dee

View file

@ -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