New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net: tests fail if /etc/hosts lists localhost 127.0.0.1 twice #6363
Labels
Milestone
Comments
Comment 1 by jaq@spacepants.org: I am not smart enough to understand the comment in that test: "make sure it doesn't // duplicate addresses (a common bug due to the way // getaddrinfo works)." getaddrinfo seems to be working as intended. |
Everything about the net tests is a little fragile. Even so, they serve a useful purpose. What this test is referring to is that getaddrinfo will return 127.0.0.1 once for SOCK_STREAM and once for SOCK_DGRAM, even when it appears just once in the hosts file. In this case it has returned it four times, and the Go code has (correctly I think) cut it down to two. I'm inclined to leave this as is unless more people run into it. Is it possible for you to get your /etc/hosts fixed? Labels changed: added priority-later, removed priority-triage. Status changed to Thinking. |
Comment 3 by jaq@spacepants.org: I thought that would be the response :) I managed to get golang installed by removing the duplicate entry, but the configuration management is out of my control. |
Closing. TestLookupHost was removed by 047f07a. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by jaq@spacepants.org:
The text was updated successfully, but these errors were encountered: