Remove warnings and unused code

上级 65d584c3
......@@ -225,7 +225,7 @@ def test_checkout_fairness
threads = expected.map do |i|
t = Thread.new {
begin
conn = @pool.checkout # never checked back in
@pool.checkout # never checked back in
mutex.synchronize { order << i }
rescue => e
mutex.synchronize { errors << e }
......@@ -262,7 +262,7 @@ def test_checkout_fairness_by_group
make_thread = proc do |i|
t = Thread.new {
begin
conn = @pool.checkout # never checked back in
@pool.checkout # never checked back in
mutex.synchronize { successes << i }
rescue => e
mutex.synchronize { errors << e }
......
......@@ -151,11 +151,6 @@ def test_cache_is_flat
end
def test_cache_does_not_wrap_string_results_in_arrays
if current_adapter?(:SQLite3Adapter)
require 'sqlite3/version'
sqlite3_version = RUBY_PLATFORM =~ /java/ ? Jdbc::SQLite3::VERSION : SQLite3::VERSION
end
Task.cache do
# Oracle adapter returns count() as Fixnum or Float
if current_adapter?(:OracleAdapter)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册