1
0
Fork 0
mirror of https://github.com/mperham/connection_pool synced 2023-03-27 23:22:21 -04:00

Suggestions from @brixen

This commit is contained in:
Mike Perham 2011-09-25 19:23:35 -07:00
parent 751be41b6b
commit b36d8cc056
2 changed files with 4 additions and 3 deletions

View file

@ -3,4 +3,5 @@ source "http://rubygems.org"
# Specify your gem's dependencies in connection_pool.gemspec
gemspec
gem 'minitest'
gem 'rake'
gem 'minitest'

View file

@ -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