diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-11-09 16:53:55 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-11-09 16:57:11 +0900 |
commit | be6e1b8f7dbce1940f47339657faab2c1fdeaa54 (patch) | |
tree | 2965d6e4bec1d0503331add69a2adebec27d78cd /activerecord/test/cases | |
parent | 8614a3a9763fad9f8e454cd3aa24afb71c132a9f (diff) | |
download | rails-be6e1b8f7dbce1940f47339657faab2c1fdeaa54.tar.gz rails-be6e1b8f7dbce1940f47339657faab2c1fdeaa54.tar.bz2 rails-be6e1b8f7dbce1940f47339657faab2c1fdeaa54.zip |
Should pass `test_no_locks_no_wait` not only on `PostgreSQLAdapter` and `OracleAdapter`
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/locking_test.rb | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/activerecord/test/cases/locking_test.rb b/activerecord/test/cases/locking_test.rb index 6791d50940..e857180bd1 100644 --- a/activerecord/test/cases/locking_test.rb +++ b/activerecord/test/cases/locking_test.rb @@ -611,14 +611,12 @@ unless in_memory_db? end end - if current_adapter?(:PostgreSQLAdapter, :OracleAdapter) - def test_no_locks_no_wait - first, second = duel { Person.find 1 } - assert first.end > second.end - end - - private + def test_no_locks_no_wait + first, second = duel { Person.find 1 } + assert first.end > second.end + end + private def duel(zzz = 5) t0, t1, t2, t3 = nil, nil, nil, nil @@ -646,6 +644,5 @@ unless in_memory_db? assert t3 > t2 [t0.to_f..t1.to_f, t2.to_f..t3.to_f] end - end end end |