Skip to content

Commit eeb3879

Browse files
committed
Fix failing tests introduced by rails#41030
In rails#41030 the tests didn't show as failing because they only fail when run in isolation which happens on the merge to master. In this test we need to re-establish the connection to `ActiveRecord::Base` or else the tests get the connections confused and for some reason some of the migration tests were looking for the wrong connection specification name.
1 parent 555aa38 commit eeb3879

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

activerecord/test/cases/connection_adapters/connection_swapping_nested_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ def test_application_record_prevent_writes_can_be_changed
434434
end
435435
ensure
436436
Object.send(:remove_const, :ApplicationRecord)
437+
ActiveRecord::Base.establish_connection :arunit
437438
end
438439
end
439440
end

0 commit comments

Comments
 (0)