зеркало из https://github.com/github/ruby.git
Increase timeout for CSV test with --jit-wait
To prevent CI failures like http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/2739995
This commit is contained in:
Родитель
55bf0ef1aa
Коммит
66d1900423
|
@ -246,7 +246,8 @@ line,5,jkl
|
|||
private
|
||||
def assert_parse_errors_out(data, **options)
|
||||
assert_raise(CSV::MalformedCSVError) do
|
||||
Timeout.timeout(0.2) do
|
||||
timeout = (RubyVM::MJIT.enabled? ? 5 : 0.2) # for --jit-wait
|
||||
Timeout.timeout(timeout) do
|
||||
CSV.parse(data, **options)
|
||||
fail("Parse didn't error out")
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче