File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1842,6 +1842,16 @@ class TransactionIsolationTest < ActiveRecord::TestCase
18421842
18431843 # I really need some help understanding this one.
18441844 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
18451855end
18461856
18471857class ViewWithPrimaryKeyTest < ActiveRecord ::TestCase
You can’t perform that action at this time.
0 commit comments