mirror of
https://github.com/mperham/connection_pool
synced 2023-03-27 23:22:21 -04:00
Test TimedStack#empty? with a sized stack
This commit is contained in:
parent
c93190bb80
commit
42ac8d5608
1 changed files with 6 additions and 0 deletions
|
@ -15,6 +15,12 @@ class TestConnectionPoolTimedStack < Minitest::Test
|
|||
refute_empty @stack
|
||||
end
|
||||
|
||||
def test_empty_eh_full
|
||||
stack = ConnectionPool::TimedStack.new(1) { Object.new }
|
||||
|
||||
refute_empty stack
|
||||
end
|
||||
|
||||
def test_length
|
||||
assert_equal 0, @stack.length
|
||||
|
||||
|
|
Loading…
Reference in a new issue