summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2025-04-03 19:30:24 +0900
committerHiroshi SHIBATA <[email protected]>2025-04-03 20:03:18 +0900
commitfab133e629c507f4add4a7dde2e0ba12b7ec281c (patch)
treef2112f24b243a3d0fbdf529f90cfb945e413622b
parent3f152ce767dcc2bda2232d35d29eaecf97932627 (diff)
Use EnvUtil.apply_timeout_scale
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13058
-rw-r--r--test/net/http/test_http.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/net/http/test_http.rb b/test/net/http/test_http.rb
index f01a9686c8..c9a27d87cb 100644
--- a/test/net/http/test_http.rb
+++ b/test/net/http/test_http.rb
@@ -589,9 +589,9 @@ module TestNetHTTP_version_1_1_methods
port = server.addr[1]
conn = Net::HTTP.new('localhost', port)
- conn.write_timeout = 0.01
- conn.read_timeout = 0.01 if windows?
- conn.open_timeout = 1
+ conn.write_timeout = EnvUtil.apply_timeout_scale(0.01)
+ conn.read_timeout = EnvUtil.apply_timeout_scale(0.01) if windows?
+ conn.open_timeout = EnvUtil.apply_timeout_scale(1)
req = Net::HTTP::Post.new('/')
data = "a"*50_000_000