diff --git a/Gemfile b/Gemfile index b8e4007..75cafe6 100644 --- a/Gemfile +++ b/Gemfile @@ -3,4 +3,5 @@ source "http://rubygems.org" # Specify your gem's dependencies in connection_pool.gemspec gemspec -gem 'minitest' \ No newline at end of file +gem 'rake' +gem 'minitest' diff --git a/test/test_connection_pool.rb b/test/test_connection_pool.rb index b3eee86..8b4d27f 100644 --- a/test/test_connection_pool.rb +++ b/test/test_connection_pool.rb @@ -27,12 +27,12 @@ class TestConnectionPool < MiniTest::Unit::TestCase end end end - + a = Time.now result = threads.map(&:value) b = Time.now assert_operator((b - a), :>, 0.125) - assert_equal(result, [1,2,3].cycle(5).sort) + assert_equal([1,2,3].cycle(5).sort, result) end def test_timeout