We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 048734d commit ebc8876Copy full SHA for ebc8876
test/cases/coerced_tests.rb
@@ -1842,6 +1842,16 @@ class TransactionIsolationTest < ActiveRecord::TestCase
1842
1843
# I really need some help understanding this one.
1844
coerce_tests! %r{repeatable read}
1845
+
1846
+ private
1847
1848
+ # The isolation level is set twice. Once by the transaction and once when the connection is reset
1849
+ # by `SQLServerRealTransaction#commit`. MySQL & PostgreSQL do not reset the connection and SQLite does support
1850
+ # transaction isolation.
1851
+ undef_method :assert_begin_isolation_level_event
1852
+ def assert_begin_isolation_level_event(events)
1853
+ assert_equal 2, events.select { _1.match(/SET TRANSACTION ISOLATION LEVEL READ COMMITTED/) }.size
1854
+ end
1855
end
1856
1857
class ViewWithPrimaryKeyTest < ActiveRecord::TestCase
0 commit comments