Use IPv4 for the listener to avoid v6 failures on Travis.

This commit is contained in:
Soheil Hassas Yeganeh 2017-12-04 12:32:43 -05:00 committed by Soheil Hassas Yeganeh
parent b9e684ba4e
commit be5b383fd5
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ func (l *chanListener) Accept() (net.Conn, error) {
}
func testListener(t *testing.T) (net.Listener, func()) {
l, err := net.Listen("tcp", ":0")
l, err := net.Listen("tcp", "127.0.0.1:0")
if err != nil {
t.Fatal(err)
}