2
0
mirror of https://github.com/soheilhy/cmux.git synced 2024-09-19 18:45:48 +08:00

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
parent ac00452023
commit 711042c095

View File

@ -81,7 +81,7 @@ func (l *chanListener) Accept() (net.Conn, error) {
} }
func testListener(t *testing.T) (net.Listener, func()) { 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 { if err != nil {
t.Fatal(err) t.Fatal(err)
} }