From 8d8554ce7babde2e5e92abd768c9220dea575081 Mon Sep 17 00:00:00 2001 From: Eric Hodel Date: Thu, 6 Feb 2014 18:07:58 -0800 Subject: [PATCH] Test TimedStack#pop --- test/test_connection_pool_timed_stack.rb | 8 ++++++++ 1 file changed, 8 insertions(+) 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