From eb1be48cc6431cb380abbe11af6e72bbcec47b06 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 6 Jul 2016 11:05:04 +1000 Subject: [PATCH] TestSetMaxEstablishedConn does now work with utp I think dialing out from a utp.Socket before its reader has initialized may be the cause. Either way moving the addPeers to after all the Clients are initialized has worked around it as a side effect. --- client_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/client_test.go b/client_test.go index 28af2af2..d6a83bf2 100644 --- a/client_test.go +++ b/client_test.go @@ -953,7 +953,6 @@ func TestSetMaxEstablishedConn(t *testing.T) { var tts []*Torrent ih := testutil.GreetingMetaInfo().Info.Hash() cfg := TestingConfig - cfg.DisableUTP = true for i := range iter.N(3) { cl, err := NewClient(&cfg) require.NoError(t, err)