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

Allow any address family in net_test #137

Merged
merged 4 commits into from
Aug 10, 2018
Merged

Conversation

samribeiro
Copy link
Contributor

No description provided.

@ybubnov
Copy link
Member

ybubnov commented Aug 10, 2018

@samribeiro , thank you for the PR!

net_test.go Outdated
@@ -162,7 +162,7 @@ func TestListener(t *testing.T) {
}

func TestDial(t *testing.T) {
ln, err := Listen("tcp4", "127.0.0.1:0")
ln, err := Listen("tcp", ":0")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was like this some time before, until I started get errors on Travis CI.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that travis is complaining. I wonder if it is a problem with travis then. Perhaps specifying a port can help. Testing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

confident this was a bug in go interpreting/parsing IPv6 addresses that got fixed before 1.9. The issue probably started being noticeable when they defaulted travis to IPv6. But is just a guess, suggestion works now and is good enough for me too.

@ybubnov ybubnov merged commit f0ea041 into netrack:master Aug 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants