ruby-changes:60185
From: Takashi <ko1@a...>
Date: Wed, 26 Feb 2020 02:27:55 +0900 (JST)
Subject: [ruby-changes:60185] 66d1900423 (master): Increase timeout for CSV test with --jit-wait
https://git.ruby-lang.org/ruby.git/commit/?id=66d1900423 From 66d1900423e6fb9774c2fe72dba8c2968b54d7ab Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Tue, 25 Feb 2020 09:27:11 -0800 Subject: Increase timeout for CSV test with --jit-wait To prevent CI failures like http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/2739995 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 https://github.com/ruby/ruby/blob/trunk/test/csv/parse/test_general.rb#L246 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/