File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1852,8 +1852,9 @@ class TransactionIsolationTest < ActiveRecord::TestCase
1852
1852
def assert_begin_isolation_level_event ( events , isolation : "READ COMMITTED" )
1853
1853
isolation_events = events . select { _1 . match ( /SET TRANSACTION ISOLATION LEVEL/ ) }
1854
1854
1855
- reset_starting_isolation_level_event = isolation_events . delete ( "SET TRANSACTION ISOLATION LEVEL READ COMMITTED" )
1856
- assert reset_starting_isolation_level_event . present?
1855
+ index_of_reset_starting_isolation_level_event = isolation_events . index ( "SET TRANSACTION ISOLATION LEVEL READ COMMITTED" )
1856
+ assert index_of_reset_starting_isolation_level_event . present?
1857
+ isolation_events . delete_at ( index_of_reset_starting_isolation_level_event )
1857
1858
1858
1859
assert_equal 1 , isolation_events . select { _1 . match ( /SET TRANSACTION ISOLATION LEVEL #{ isolation } / ) } . size
1859
1860
end
You can’t perform that action at this time.
0 commit comments