aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/locking_test.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-07-07 10:48:43 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-07-07 10:48:43 +0000
commitc4782f7393029eeacc599a7921939744d1fe22cd (patch)
tree54218c45c6b055f2deafa6372fdc2fe87de5515a /activerecord/test/locking_test.rb
parent044f960fd35a93159d1e0278124109dd74107670 (diff)
downloadrails-c4782f7393029eeacc599a7921939744d1fe22cd.tar.gz
rails-c4782f7393029eeacc599a7921939744d1fe22cd.tar.bz2
rails-c4782f7393029eeacc599a7921939744d1fe22cd.zip
More succinct current_adapter? Enable locking duel for Oracle.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4576 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/locking_test.rb')
-rw-r--r--activerecord/test/locking_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/locking_test.rb b/activerecord/test/locking_test.rb
index 35c557e19d..8ddfb2289c 100644
--- a/activerecord/test/locking_test.rb
+++ b/activerecord/test/locking_test.rb
@@ -108,7 +108,7 @@ class PessimisticLockingTest < Test::Unit::TestCase
end
end
- if current_adapter?(:PostgreSQLAdapter)
+ if current_adapter?(:PostgreSQLAdapter, :OracleAdapter)
def test_no_locks_no_wait
first, second = duel { Person.find 1 }
assert first.end > second.end
@@ -120,7 +120,7 @@ class PessimisticLockingTest < Test::Unit::TestCase
end
protected
- def duel(zzz = 0.2)
+ def duel(zzz = 1.0)
t0, t1, t2, t3 = nil, nil, nil, nil
a = Thread.new do