summaryrefslogtreecommitdiff
path: root/test/csv
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2020-02-25 09:27:11 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2020-02-25 09:27:24 -0800
commit66d1900423e6fb9774c2fe72dba8c2968b54d7ab (patch)
tree9295c356a1b67d84a0e1488223d259ec9331e454 /test/csv
parent55bf0ef1aa7c936b564b883196de1ace4be4cc7e (diff)
Increase timeout for CSV test with --jit-wait
To prevent CI failures like http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/2739995
Diffstat (limited to 'test/csv')
-rw-r--r--test/csv/parse/test_general.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/csv/parse/test_general.rb b/test/csv/parse/test_general.rb
index 655bb26..4da1775 100644
--- a/test/csv/parse/test_general.rb
+++ b/test/csv/parse/test_general.rb
@@ -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