Skip to content

Commit

Permalink
Pass the test reporter by reference
Browse files Browse the repository at this point in the history
This prevents the array from being dumped as a DRbObject so we can reduce
communication with the server.

In DRb, if `Marshal.dump` fails, `Marshal.dump` is executed again after
converting the object to `DRbObject`. This also possible to reduce the
execution of `Marshal.dump` by converting to a format that can be
marshalized in advance using `DRbObject`.
This is the same approach to Action Pack's parallel test. Ref: 5751b7e
  • Loading branch information
y-yagi committed Nov 28, 2018
1 parent ac721c8 commit 8687a03
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def record(reporter, result)
end

def <<(o)
o[2] = DRbObject.new(o[2]) if o
@queue << o
end

Expand Down

0 comments on commit 8687a03

Please sign in to comment.