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

Comments

Projects
None yet
5 participants
@quchunguang
Copy link

commented Jun 12, 2015

...
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

This comment has been minimized.

Copy link
Contributor

commented Jun 12, 2015

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

@quchunguang

This comment has been minimized.

Copy link
Author

commented Jun 12, 2015

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

@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

commented Jun 12, 2015

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

This comment has been minimized.

Copy link

commented Jun 14, 2015

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

@mikioh mikioh closed this 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.
You can’t perform that action at this time.