diff options
| author | nagachika <nagachika@ruby-lang.org> | 2023-12-16 10:42:13 +0900 |
|---|---|---|
| committer | nagachika <nagachika@ruby-lang.org> | 2023-12-16 10:48:39 +0900 |
| commit | 4cbad13e9cd1c4cf63ad4adc096cc4b6294a838f (patch) | |
| tree | 5dab0157a94ee1425b482f0523740bd6b3691589 /test | |
| parent | b3639871b2566c25c6c3b547f57348dc101ed3a4 (diff) | |
merge revision(s) f109269a0392940df2b314e16502c4509b94a290,14fa5e39d72c84d3e12e10dc5d77a6e6200c10f5:
[ruby/net-http] fix a false-negative test
* no_proxy is meant to operate on the destination address, not on the name of the proxy
* if both end with `'.example'`, the test does not nail down the behaviour
https://github.com/ruby/net-http/commit/bb9a5cfa3d
---
test/net/http/test_http.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[ruby/net-http] fix no_proxy behaviour
https://github.com/ruby/net-http/commit/f4951dc42a
---
lib/net/http.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Diffstat (limited to 'test')
| -rw-r--r-- | test/net/http/test_http.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/net/http/test_http.rb b/test/net/http/test_http.rb index 0508645ac5..53092ee0e8 100644 --- a/test/net/http/test_http.rb +++ b/test/net/http/test_http.rb @@ -126,10 +126,10 @@ class TestNetHTTP < Test::Unit::TestCase def test_proxy_address_no_proxy TestNetHTTPUtils.clean_http_proxy_env do - http = Net::HTTP.new 'hostname.example', nil, 'proxy.example', nil, nil, nil, 'example' + http = Net::HTTP.new 'hostname.example', nil, 'proxy.com', nil, nil, nil, 'example' assert_nil http.proxy_address - http = Net::HTTP.new '10.224.1.1', nil, 'proxy.example', nil, nil, nil, 'example,10.224.0.0/22' + http = Net::HTTP.new '10.224.1.1', nil, 'proxy.com', nil, nil, nil, 'example,10.224.0.0/22' assert_nil http.proxy_address end end |
