Fix change in Client.newConnection

This commit is contained in:
Matt Joiner 2020-04-15 17:28:39 +10:00
parent c27e3f8de3
commit 166f878bdc
1 changed files with 1 additions and 1 deletions

View File

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