Reapply the following commits related to extend timeout value.
66d1900423e6fb9774c2fe72dba8c2968b54d7ab 0686e4181d04dd911316a227753ceaa96d8c6533 1a63468831524f68e73cbb068071652c6486cfc6 e1fee7f949cb6719122672fa1081c60984a5339f 232e43fd52e53f667c2c290cffb4afa524889f0f
This commit is contained in:
parent
643918ecfe
commit
bcf01b18cf
Notes:
git
2022-12-09 07:36:48 +00:00
@ -325,7 +325,14 @@ line,5,jkl
|
|||||||
private
|
private
|
||||||
def assert_parse_errors_out(data, **options)
|
def assert_parse_errors_out(data, **options)
|
||||||
assert_raise(CSV::MalformedCSVError) do
|
assert_raise(CSV::MalformedCSVError) do
|
||||||
Timeout.timeout(0.2) do
|
timeout = 0.2
|
||||||
|
if defined?(RubyVM::YJIT.enabled?) and RubyVM::YJIT.enabled?
|
||||||
|
timeout = 1 # for --yjit-call-threshold=1
|
||||||
|
end
|
||||||
|
if defined?(RubyVM::MJIT.enabled?) and RubyVM::MJIT.enabled?
|
||||||
|
timeout = 5 # for --jit-wait
|
||||||
|
end
|
||||||
|
Timeout.timeout(timeout) do
|
||||||
CSV.parse(data, **options)
|
CSV.parse(data, **options)
|
||||||
fail("Parse didn't error out")
|
fail("Parse didn't error out")
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user