lib/tork/config/parallel_tests.rb in tork-16.0.0 vs lib/tork/config/parallel_tests.rb in tork-17.0.0

- old
+ new

@@ -1,7 +1,9 @@ require 'tork/config' -Tork::Config.after_fork_hooks << proc do |worker_number| +Tork::Config.after_fork_hooks.push lambda { + |test_file, line_numbers, log_file, worker_number| + # for compatitibilty with parallel_tests gem, # store numbers as strings: "", "2", "3", "4" ENV['TEST_ENV_NUMBER'] = (worker_number + 1).to_s if worker_number > 0 -end +}