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:
parent
b7cd79ef62
commit
eb1be48cc6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue