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:
parent
751be41b6b
commit
b36d8cc056
2 changed files with 4 additions and 3 deletions
3
Gemfile
3
Gemfile
|
@ -3,4 +3,5 @@ source "http://rubygems.org"
|
|||
# Specify your gem's dependencies in connection_pool.gemspec
|
||||
gemspec
|
||||
|
||||
gem 'minitest'
|
||||
gem 'rake'
|
||||
gem 'minitest'
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue