mirror of
https://github.com/soheilhy/cmux.git
synced 2024-11-10 03:31:52 +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:
parent
f671b41193
commit
8cd60510aa
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user