summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2025-04-03 19:30:24 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2025-04-04 07:38:52 +0900
commita1679f0d83845a35116d4e40bba4783346c8d7dc (patch)
tree39f32b59103b260633a6efb464a0e6ec76b592d8
parentf2ee22f32d3b4919b9a5b62a81b544019383ef3a (diff)
Use EnvUtil.apply_timeout_scale
-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 d45d26ad46..eb7d3e672c 100644
--- a/test/net/http/test_http.rb
+++ b/test/net/http/test_http.rb
@@ -573,9 +573,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