"net"
"testing"
- "github.com/anacrolix/missinggo"
+ "github.com/anacrolix/log"
+ "github.com/anacrolix/missinggo/v2"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
}
func listenUtpListener(net, addr string) (l net.Listener, err error) {
- l, err = NewUtpSocket(net, addr)
+ l, err = NewUtpSocket(net, addr, nil, log.Default)
return
}
testListenerNetwork(t, listenUtpListener, "udp", "udp6", "[::]:0", false)
testListenerNetwork(t, listenUtpListener, "udp", "udp4", "localhost:0", true)
- testAcceptedConnAddr(t, "tcp", false, dialClosure(net.Dial, "tcp"), listenClosure(net.Listen, "tcp6", ":0"))
+ testAcceptedConnAddr(
+ t,
+ "tcp",
+ false,
+ dialClosure(net.Dial, "tcp"),
+ listenClosure(net.Listen, "tcp6", "localhost:0"),
+ )
}