Project

General

Profile

Actions

Bug #6746

closed

test_bind_to_local_host(TestNetHTTPLocalBind) fails.

Added by shyouhei (Shyouhei Urabe) over 11 years ago. Updated over 11 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 2.0.0dev (2012-07-17) [x86_64-linux]
Backport:
[ruby-dev:45970]

Description

手元の環境でtest_bind_to_local_host(TestNetHTTPLocalBind)が失敗しています。

  1. Error:
    test_bind_to_local_host(TestNetHTTPLocalBind):
    NoMethodError: undefined method ip_address' for nil:NilClass /src/test/net/http/test_http.rb:660:in _select_local_ip_address'
    /src/test/net/http/test_http.rb:635:in `test_bind_to_local_host'

11283 tests, 2263492 assertions, 3 failures, 13 errors, 67 skips

お察しのように、この環境にはIPv4アドレスがありません。ですがそのような理由でErrorが増えるのは不本意です。

ちょっとテストの意図が分かりかねるため、こちらでの修正がためらわれるのですが、これは何のテストなのでしょうか?


Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #6617: Net::HTTP: Bind to a specific local IP/portClosednaruse (Yui NARUSE)06/21/2012Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0