lib/tork/master.rb in tork-19.8.2 vs lib/tork/master.rb in tork-19.9.0
- old
+ new
@@ -29,10 +29,10 @@
stop :SIGKILL
end
def test test_file, line_numbers
# throttle forking rate to meet the maximum concurrent workers limit
- sleep 1 until @command_by_worker_pid.size < @worker_number_pool.size
+ sleep 1 until @command_by_worker_pid.size <= @worker_number_pool.size
$tork_test_file = test_file
$tork_line_numbers = line_numbers
$tork_log_file = $tork_test_file + '.log'
$tork_worker_number = @worker_number_pool.shift