- }}), qt.ContentEquals, map[PeerId]PeerNextRequestState{
- intPeerId(2): {
- Interested: true,
- Requests: requestSetFromSlice(r(0, 0)),
- },
- intPeerId(3): {
- Interested: true,
- Requests: requestSetFromSlice(r(0, 1)),
- },
- stealee.Id: {
- Interested: false,
- Requests: requestSetFromSlice(),
- },
- })
+ }})
+ checkNumRequestsAndInterest(c, results[firstStealer.Id], 1, true)
+ checkNumRequestsAndInterest(c, results[secondStealer.Id], 1, true)
+ checkNumRequestsAndInterest(c, results[stealee.Id], 0, false)