Skip to content
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: Test TestLookupHost-2 failed when building #11182

Closed
quchunguang opened this issue Jun 12, 2015 · 4 comments
Closed

net: Test TestLookupHost-2 failed when building #11182

quchunguang opened this issue Jun 12, 2015 · 4 comments
Milestone

Comments

@quchunguang
Copy link

...
ok mime/multipart 0.128s
ok mime/quotedprintable 0.395s
--- FAIL: TestLookupHost-2 (0.01s)
hosts_test.go:132: LookupHost("localhost") = [127.0.0.1 127.0.0.1], has duplicate addresses
FAIL
FAIL net 2.072s
ok net/http 4.068s
...

$ go version
go version devel +202ef48 Fri Jun 12 04:33:50 2015 +0000 linux/amd64
$ uname -a
Linux kevin1 3.19.0-18-generic #18-Ubuntu SMP Tue May 19 18:31:35 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

@davecheney
Copy link
Contributor

Quick check, does 127.0.0.1 or localhost appear more than once in your /etc/hosts/ file ?

@quchunguang
Copy link
Author

Oh... Yes.
But it seems not a problem if 127.0.0.1 appear more than once in /etc/hosts/ file.

@ianlancetaylor
Copy link
Contributor

It's not a real problem. You can ignore this test failure.

The test is looking for a specific problem that can cause duplicate addresses to be returned. If there really are duplicate addresses, the test will fail incorrectly. Perhaps we should skip the test if testing.Short is true.

@ianlancetaylor ianlancetaylor added this to the Go1.5Maybe milestone Jun 12, 2015
@ianlancetaylor ianlancetaylor changed the title Test TestLookupHost-2 failed when building net: Test TestLookupHost-2 failed when building Jun 12, 2015
@mikioh mikioh modified the milestones: Go1.5, Go1.5Maybe Jun 13, 2015
@gopherbot
Copy link

CL https://golang.org/cl/11057 mentions this issue.

@mikioh mikioh closed this as completed in 047f07a Jun 16, 2015
@mikioh mikioh removed their assignment Aug 4, 2015
@golang golang locked and limited conversation to collaborators Aug 5, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants