Update timeout seconds

This commit is contained in:
TSUYUSATO Kitsune 2022-11-07 11:52:38 +09:00 committed by Yusuke Endoh
parent 80d145fa52
commit 71c76d1bfa
1 changed files with 1 additions and 1 deletions

View File

@ -1677,7 +1677,7 @@ class TestRegexp < Test::Unit::TestCase
def test_cache_optimization_exponential
assert_separately([], "#{<<-"begin;"}\n#{<<-'end;'}")
begin;
timeout = EnvUtil.apply_timeout_scale(0.2)
timeout = EnvUtil.apply_timeout_scale(2)
Regexp.timeout = timeout
assert_nil(/^(a*)*$/ =~ "a" * 1000000 + "x")