lib/parallel_tests/cli.rb in parallel_tests-0.11.6 vs lib/parallel_tests/cli.rb in parallel_tests-0.12.0
- old
+ new
@@ -18,11 +18,10 @@
private
def execute_in_parallel(items, num_processes, options)
Tempfile.open 'parallel_tests-lock' do |lock|
- mode = (RUBY_ENGINE == "jruby" ? :in_threads : :in_processes)
- return Parallel.map(items, mode => num_processes) do |item|
+ return Parallel.map(items, :in_threads => num_processes) do |item|
result = yield(item)
report_output(result, lock) if options[:serialize_stdout]
result
end
end