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/autorun'
|
||||
|
||||
require 'connection_pool'
|
||||
|
||||
class Minitest::Unit::TestCase
|
||||
|
||||
class ConnectionPoolTest < MiniTest::Unit::TestCase
|
||||
def async_test(time=0.5)
|
||||
q = TimedQueue.new
|
||||
yield Proc.new { q << nil }
|
||||
q.timed_pop(time)
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
Thread.abort_on_exception = true
|
||||
require 'helper'
|
||||
|
||||
class TestConnectionPool < Minitest::Test
|
||||
|
||||
Class.new(ConnectionPoolTest) do
|
||||
class NetworkConnection
|
||||
def initialize
|
||||
@x = 0
|
||||
|
|
Loading…
Reference in a new issue