]> Sergey Matveev's repositories - btrtrc.git/commitdiff
utp.NewSocket now takes network parameter
authorMatt Joiner <anacrolix@gmail.com>
Tue, 4 Aug 2015 16:51:40 +0000 (02:51 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 4 Aug 2015 16:51:40 +0000 (02:51 +1000)
client_test.go

index c59eeef639be588f31f4665926ece2491ba030e8..dcad14844b6e2f578a3e0b150710b5458ee71cd1 100644 (file)
@@ -148,7 +148,7 @@ func TestReducedDialTimeout(t *testing.T) {
 }
 
 func TestUTPRawConn(t *testing.T) {
-       l, err := utp.NewSocket("")
+       l, err := utp.NewSocket("udp", "")
        if err != nil {
                t.Fatal(err)
        }
@@ -162,7 +162,7 @@ func TestUTPRawConn(t *testing.T) {
                }
        }()
        // Connect a UTP peer to see if the RawConn will still work.
-       s, _ := utp.NewSocket("")
+       s, _ := utp.NewSocket("udp", "")
        defer s.Close()
        utpPeer, err := s.Dial(fmt.Sprintf("localhost:%d", missinggo.AddrPort(l.Addr())))
        if err != nil {