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

Remove V4 address family in cmux_test.go.

On IPv6 only machines, cmux_test.go would fail because it forces
tcp4. Simply use tcp, instead.
This commit is contained in:
Soheil Hassas Yeganeh 2017-07-03 09:35:36 -04:00
parent f671b41193
commit 8cd60510aa

View File

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