mirror of
https://github.com/mperham/connection_pool
synced 2023-03-27 23:22:21 -04:00
Fix MiniTest name.
This commit is contained in:
parent
417638c6c4
commit
fe092277e9
2 changed files with 3 additions and 6 deletions
|
@ -1,15 +1,13 @@
|
||||||
require 'rubygems'
|
require 'minitest/unit'
|
||||||
require 'minitest/pride'
|
require 'minitest/pride'
|
||||||
require 'minitest/autorun'
|
require 'minitest/autorun'
|
||||||
|
|
||||||
require 'connection_pool'
|
require 'connection_pool'
|
||||||
|
|
||||||
class Minitest::Unit::TestCase
|
class ConnectionPoolTest < MiniTest::Unit::TestCase
|
||||||
|
|
||||||
def async_test(time=0.5)
|
def async_test(time=0.5)
|
||||||
q = TimedQueue.new
|
q = TimedQueue.new
|
||||||
yield Proc.new { q << nil }
|
yield Proc.new { q << nil }
|
||||||
q.timed_pop(time)
|
q.timed_pop(time)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
Thread.abort_on_exception = true
|
Thread.abort_on_exception = true
|
||||||
require 'helper'
|
require 'helper'
|
||||||
|
|
||||||
class TestConnectionPool < Minitest::Test
|
Class.new(ConnectionPoolTest) do
|
||||||
|
|
||||||
class NetworkConnection
|
class NetworkConnection
|
||||||
def initialize
|
def initialize
|
||||||
@x = 0
|
@x = 0
|
||||||
|
|
Loading…
Reference in a new issue