Fix change in Client.newConnection
This commit is contained in:
parent
c27e3f8de3
commit
166f878bdc
|
@ -18,7 +18,7 @@ func TestPexConnState(t *testing.T) {
|
|||
cl.initLogger()
|
||||
torrent := cl.newTorrent(metainfo.Hash{}, nil)
|
||||
addr := &net.TCPAddr{IP: net.IPv6loopback, Port: 4747}
|
||||
c := cl.newConnection(nil, false, addr, "")
|
||||
c := cl.newConnection(nil, false, addr, "", "")
|
||||
c.PeerExtensionIDs = make(map[pp.ExtensionName]pp.ExtensionNumber)
|
||||
c.PeerExtensionIDs[pp.ExtensionNamePex] = pexExtendedId
|
||||
c.writerCond.L.Lock()
|
||||
|
|
Loading…
Reference in New Issue