Fix test case for test_match_cache_with_peek_optimization
(#9466)
This commit is contained in:
parent
a1949df547
commit
8b65d15ff0
@ -1950,7 +1950,7 @@ class TestRegexp < Test::Unit::TestCase
|
|||||||
timeout = #{ EnvUtil.apply_timeout_scale(10).inspect }
|
timeout = #{ EnvUtil.apply_timeout_scale(10).inspect }
|
||||||
begin;
|
begin;
|
||||||
Regexp.timeout = timeout
|
Regexp.timeout = timeout
|
||||||
assert_nil(/a*z/ =~ "a" * 1000000 + "x")
|
assert_nil(/a+z/ =~ "a" * 1000000 + "xz")
|
||||||
end;
|
end;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user