mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update timeout seconds for square test
This commit is contained in:
parent
71c76d1bfa
commit
0a14825f73
1 changed files with 1 additions and 1 deletions
|
@ -1687,7 +1687,7 @@ class TestRegexp < Test::Unit::TestCase
|
||||||
def test_cache_optimization_square
|
def test_cache_optimization_square
|
||||||
assert_separately([], "#{<<-"begin;"}\n#{<<-'end;'}")
|
assert_separately([], "#{<<-"begin;"}\n#{<<-'end;'}")
|
||||||
begin;
|
begin;
|
||||||
timeout = EnvUtil.apply_timeout_scale(0.2)
|
timeout = EnvUtil.apply_timeout_scale(2)
|
||||||
Regexp.timeout = timeout
|
Regexp.timeout = timeout
|
||||||
|
|
||||||
assert_nil(/^a*b?a*$/ =~ "a" * 1000000 + "x")
|
assert_nil(/^a*b?a*$/ =~ "a" * 1000000 + "x")
|
||||||
|
|
Loading…
Reference in a new issue