mirror of
https://github.com/mperham/connection_pool
synced 2023-03-27 23:22:21 -04:00
16 lines
244 B
Ruby
16 lines
244 B
Ruby
require 'rubygems'
|
|
require 'minitest/autorun'
|
|
|
|
require 'connection_pool'
|
|
|
|
puts RUBY_DESCRIPTION
|
|
|
|
class MiniTest::Unit::TestCase
|
|
|
|
def async_test(time=0.5)
|
|
q = TimedQueue.new
|
|
yield Proc.new { q << nil }
|
|
q.timed_pop(time)
|
|
end
|
|
|
|
end
|