Sha256: d15162ace4365c5ce327062528cfeb956dae2c0e15ff9cbfdc4b647003b7d2ea
Contents?: true
Size: 335 Bytes
Versions: 37
Compression:
Stored size: 335 Bytes
Contents
require File.expand_path('spec/spec_helper') cmd = "ps uaxw|grep ruby|wc -l" processes_before = `#{cmd}`.to_i Parallel.each((0..10).to_a, :in_processes => 5) { |a| a*2 } processes_after = `#{cmd}`.to_i if processes_before == processes_after print 'OK' else print "FAIL: before:#{processes_before} -- after:#{processes_after}" end
Version data entries
37 entries across 37 versions & 1 rubygems