aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2022-11-24 15:11:55 +0900
committerYusuke Endoh <mame@ruby-lang.org>2022-11-24 15:13:00 +0900
commit66e5200ba435361624caa3e23db7962d906b70db (patch)
tree1a0b43bffbc3fd87562f253c8dea84bd4d9536eb /test/ruby
parentd92054e3711ca5dd336b753c238f4e53a9881157 (diff)
downloadruby-66e5200ba435361624caa3e23db7962d906b70db.tar.gz
Relax the timeout of TestRegexp#test_cache_optimization_square
It fails on riscv (QEmu) http://rubyci.s3.amazonaws.com/debian-riscv64/ruby-master/log/20221124T000021Z.fail.html.gz ``` 1) Error: TestRegexp#test_cache_optimization_square: Regexp::TimeoutError: regexp match timeout /home/rubyci/chkbuild/tmp/build/20221124T000021Z/ruby/test/ruby/test_regexp.rb:1693:in `<main>' /home/rubyci/chkbuild/tmp/build/20221124T000021Z/ruby/test/ruby/test_regexp.rb:1688:in `test_cache_optimization_square' ```
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_regexp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb
index abcc564eea..58c6c6c992 100644
--- a/test/ruby/test_regexp.rb
+++ b/test/ruby/test_regexp.rb
@@ -1686,7 +1686,7 @@ class TestRegexp < Test::Unit::TestCase
def test_cache_optimization_square
assert_separately([], "#{<<-"begin;"}\n#{<<-'end;'}")
- timeout = #{ EnvUtil.apply_timeout_scale(2).inspect }
+ timeout = #{ EnvUtil.apply_timeout_scale(10).inspect }
begin;
Regexp.timeout = timeout