diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-07-17 14:43:58 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-07-17 14:45:30 -0700 |
commit | 5751b7ea58d7cf259dda30fb42fff51fc6ae93d5 (patch) | |
tree | cdf63bc81a6acc38c7005674cacc8bf1d26dd5c8 /actionpack/test/abstract_unit.rb | |
parent | e213b37fc17a363ad94b06ac6c725d9fa8799013 (diff) | |
download | rails-5751b7ea58d7cf259dda30fb42fff51fc6ae93d5.tar.gz rails-5751b7ea58d7cf259dda30fb42fff51fc6ae93d5.tar.bz2 rails-5751b7ea58d7cf259dda30fb42fff51fc6ae93d5.zip |
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
Diffstat (limited to 'actionpack/test/abstract_unit.rb')
-rw-r--r-- | actionpack/test/abstract_unit.rb | 5 |
1 files changed, 4 insertions, 1 deletions
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 |