aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorKevin Casey <kacasey@berkeley.edu>2014-02-08 17:38:54 -0800
committerKevin Casey <kacasey@berkeley.edu>2014-02-08 17:38:54 -0800
commit02a3c0e771b3e09173412f93d8699d4825a366d6 (patch)
treee89319efc7f7d01091f307aaebb1b79f5910f38c /activerecord/test
parent1ec25d15d9c2e19df0195165b99335a006d449b6 (diff)
downloadrails-02a3c0e771b3e09173412f93d8699d4825a366d6.tar.gz
rails-02a3c0e771b3e09173412f93d8699d4825a366d6.tar.bz2
rails-02a3c0e771b3e09173412f93d8699d4825a366d6.zip
Reaper has access to threadsafe active? call
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/connection_pool_test.rb2
-rw-r--r--activerecord/test/cases/reaper_test.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/connection_pool_test.rb b/activerecord/test/cases/connection_pool_test.rb
index 2da51ea015..1cf215017b 100644
--- a/activerecord/test/cases/connection_pool_test.rb
+++ b/activerecord/test/cases/connection_pool_test.rb
@@ -142,7 +142,7 @@ module ActiveRecord
connections = @pool.connections.dup
connections.each do |conn|
- conn.extend(Module.new { def active?; false; end; })
+ conn.extend(Module.new { def active_threadsafe?; false; end; })
end
@pool.reap
diff --git a/activerecord/test/cases/reaper_test.rb b/activerecord/test/cases/reaper_test.rb
index e53a27d5dd..b62a41c08e 100644
--- a/activerecord/test/cases/reaper_test.rb
+++ b/activerecord/test/cases/reaper_test.rb
@@ -69,7 +69,7 @@ module ActiveRecord
conn = pool.checkout
count = pool.connections.length
- conn.extend(Module.new { def active?; false; end; })
+ conn.extend(Module.new { def active_threadsafe?; false; end; })
while count == pool.connections.length
Thread.pass