From 5751b7ea58d7cf259dda30fb42fff51fc6ae93d5 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 17 Jul 2014 14:43:58 -0700 Subject: pass the test reporter by reference 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 --- actionpack/test/abstract_unit.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'actionpack/test') diff --git a/actionpack/test/abstract_unit.rb b/actionpack/test/abstract_unit.rb index 1254859a5c..9a1f05500b 100644 --- a/actionpack/test/abstract_unit.rb +++ b/actionpack/test/abstract_unit.rb @@ -450,7 +450,10 @@ class ForkingExecutor 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 -- cgit v1.2.3