1
0
Fork 0
mirror of https://github.com/mperham/connection_pool synced 2023-03-27 23:22:21 -04:00
connection_pool/test/helper.rb
2013-05-29 08:48:27 -07:00

15 lines
246 B
Ruby

require 'rubygems'
require 'minitest/pride'
require 'minitest/autorun'
require 'connection_pool'
class Minitest::Unit::TestCase
def async_test(time=0.5)
q = TimedQueue.new
yield Proc.new { q << nil }
q.timed_pop(time)
end
end