diff --git a/test/test_connection_pool_timed_stack.rb b/test/test_connection_pool_timed_stack.rb index 8d74202..c880e16 100644 --- a/test/test_connection_pool_timed_stack.rb +++ b/test/test_connection_pool_timed_stack.rb @@ -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