mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use __dir__
This commit is contained in:
parent
370fff98ce
commit
855db8e9ce
1 changed files with 2 additions and 2 deletions
|
@ -3,8 +3,8 @@ require 'test/unit'
|
|||
require 'timeout'
|
||||
|
||||
module TestParallel
|
||||
PARALLEL_RB = "#{File.dirname(__FILE__)}/../../lib/test/unit/parallel.rb"
|
||||
TESTS = "#{File.dirname(__FILE__)}/tests_for_parallel"
|
||||
PARALLEL_RB = "#{__dir__}/../../lib/test/unit/parallel.rb"
|
||||
TESTS = "#{__dir__}/tests_for_parallel"
|
||||
# use large timeout for --jit-wait
|
||||
TIMEOUT = EnvUtil.apply_timeout_scale(defined?(RubyVM::JIT) && RubyVM::JIT.enabled? ? 100 : 30)
|
||||
|
||||
|
|
Loading…
Reference in a new issue