[ruby/uri] Increase rehearsals

This commit is contained in:
Nobuyoshi Nakada 2023-03-29 09:52:33 +09:00
parent 39a34694a0
commit f241a8de56
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6

View File

@ -116,7 +116,7 @@ class TestCommon < Test::Unit::TestCase
pre = ->(n) {
'https://example.com/dir/' + 'a' * (n * 100) + '/##.jpg'
}
assert_linear_performance((1..10).map {|i| i * 100}, pre: pre) do |uri|
assert_linear_performance((1..10).map {|i| i * 100}, rehearsal: 1000, pre: pre) do |uri|
assert_raise(URI::InvalidURIError) do
URI.parse(uri)
end