From c598bc4603ad0cf1c788bf21aea2c1bd3a29f226 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 4 May 2023 22:46:20 +0900 Subject: [PATCH] [ruby/uri] Increase repeat orders of magnitude https://github.com/ruby/uri/commit/cfbeade935 --- test/uri/test_common.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/uri/test_common.rb b/test/uri/test_common.rb index 77bdab65df..132770495b 100644 --- a/test/uri/test_common.rb +++ b/test/uri/test_common.rb @@ -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}, rehearsal: 1000, pre: pre) do |uri| + assert_linear_performance((1..3).map {|i| 10**i}, rehearsal: 1000, pre: pre) do |uri| assert_raise(URI::InvalidURIError) do URI.parse(uri) end