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.  the reporter should always exist
on the server side, so we don't have to worry about GC
  • Loading branch information
tenderlove committed Jul 17, 2014
1 parent e213b37 commit 5751b7e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion actionpack/test/abstract_unit.rb
Expand Up @@ -450,7 +450,10 @@ def record reporter, result
reporter.synchronize { reporter.record result }
end

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

Expand Down

0 comments on commit 5751b7e

Please sign in to comment.