X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=network_test.go;h=a1fd8806c9edec772028afb69a74c800ebe7fe2e;hb=HEAD;hp=f6b1bc8cf6356b9df033e91cb8122e5fe9f29d1e;hpb=bf81f4a528685dc11ab67b35126f6b28dcb040be;p=btrtrc.git diff --git a/network_test.go b/network_test.go index f6b1bc8c..a1fd8806 100644 --- a/network_test.go +++ b/network_test.go @@ -5,7 +5,6 @@ import ( "testing" "github.com/anacrolix/log" - "github.com/anacrolix/missinggo/v2" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -72,5 +71,11 @@ func TestListenLocalhostNetwork(t *testing.T) { 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"), + ) }