(other uuid.UUID)
| 203 | } |
| 204 | |
| 205 | func (p *Peer) AssertEventuallyDisconnected(other uuid.UUID) { |
| 206 | p.t.Helper() |
| 207 | for { |
| 208 | _, ok := p.peers[other] |
| 209 | if !ok { |
| 210 | return |
| 211 | } |
| 212 | if err := p.readOneResp(); err != nil { |
| 213 | assert.NoError(p.t, err) |
| 214 | return |
| 215 | } |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | func (p *Peer) AssertEventuallyLost(other uuid.UUID) { |
| 220 | p.t.Helper() |
no test coverage detected