1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix CI failure due to renamed #exception= to #error= in minitest 5.14.0

5802aa0828
https://github.com/seattlerb/minitest/pull/809#discussion_r332399750

To support both 5.13.0 and 5.14.0, use `#initialize` instead.
This commit is contained in:
Ryuta Kamizono 2020-01-12 19:14:11 +09:00
parent ee0d2158c9
commit 2bf1c17c20
2 changed files with 2 additions and 2 deletions

View file

@ -320,7 +320,7 @@ GEM
mini_magick (4.10.1)
mini_mime (1.0.2)
mini_portile2 (2.4.0)
minitest (5.13.0)
minitest (5.14.0)
minitest-bisect (1.5.1)
minitest-server (~> 1.0)
path_expander (~> 1.1)

View file

@ -102,7 +102,7 @@ module ActiveSupport
queue.record(reporter, result)
rescue DRb::DRbConnError
result.failures.each do |failure|
failure.exception = DRb::DRbRemoteError.new(failure.exception)
failure.send(:initialize, DRb::DRbRemoteError.new(failure.exception))
end
queue.record(reporter, result)
end