Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #7756 from yahonda/isolation_level_oracle

Skip tests for non-supported isolation levels with Oracle
  • Loading branch information...
commit 01cef4f3fc04978f283bd87446dab59a2b531e35 2 parents 9fec0c8 + 5f1710b
@rafaelfranca rafaelfranca authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  activerecord/test/cases/transaction_isolation_test.rb
2  activerecord/test/cases/transaction_isolation_test.rb
@@ -44,6 +44,7 @@ class Tag2 < ActiveRecord::Base
# specifies what must not happen at a certain level, not what must happen. At
# the read uncommitted level, there is nothing that must not happen.
test "read uncommitted" do
+ return skip "Oracle does not support read uncommitted" if current_adapter? :OracleAdapter
Tag.transaction(isolation: :read_uncommitted) do
assert_equal 0, Tag.count
@@ -67,6 +68,7 @@ class Tag2 < ActiveRecord::Base
# We are testing that a nonrepeatable read does not happen
test "repeatable read" do
+ return skip "Oracle does not support repeatble read" if current_adapter? :OracleAdapter
tag = Tag.create(name: 'jon')
Tag.transaction(isolation: :repeatable_read) do
Please sign in to comment.
Something went wrong with that request. Please try again.