From 502a7ebebd236efd2af3b39e13cb7e6502e7e547 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 5 Aug 2015 02:51:40 +1000 Subject: [PATCH] utp.NewSocket now takes network parameter --- client_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client_test.go b/client_test.go index c59eeef6..dcad1484 100644 --- a/client_test.go +++ b/client_test.go @@ -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 { -- 2.48.1