mirror of
https://github.com/mperham/connection_pool
synced 2023-03-27 23:22:21 -04:00
19 lines
287 B
Ruby
19 lines
287 B
Ruby
Thread.abort_on_exception = true
|
|
require 'helper'
|
|
|
|
class TestConnectionPoolTimedStack < Minitest::Test
|
|
|
|
def setup
|
|
@stack = ConnectionPool::TimedStack.new { Object.new }
|
|
end
|
|
|
|
def test_push
|
|
assert_empty @stack
|
|
|
|
@stack.push Object.new
|
|
|
|
refute_empty @stack
|
|
end
|
|
|
|
end
|
|
|