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.
This commit is contained in:
Matt Joiner 2016-07-06 11:05:04 +10:00
parent b7cd79ef62
commit eb1be48cc6
1 changed files with 0 additions and 1 deletions

View File

@ -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)