(other uuid.UUID)
| 278 | } |
| 279 | |
| 280 | func (p *Peer) AssertEventuallyReadyForHandshake(other uuid.UUID) { |
| 281 | p.t.Helper() |
| 282 | for { |
| 283 | o := p.peers[other] |
| 284 | if o.readyForHandshake { |
| 285 | return |
| 286 | } |
| 287 | |
| 288 | err := p.readOneResp() |
| 289 | if xerrors.Is(err, errResponsesClosed) { |
| 290 | return |
| 291 | } |
| 292 | } |
| 293 | } |
| 294 | |
| 295 | func (p *Peer) AssertEventuallyGetsError(match string) { |
| 296 | p.t.Helper() |
no test coverage detected