MCPcopy Index your code
hub / github.com/coder/coder / AssertEventuallyLost

Method AssertEventuallyLost

tailnet/test/peer.go:219–231  ·  view source on GitHub ↗
(other uuid.UUID)

Source from the content-addressed store, hash-verified

217}
218
219func (p *Peer) AssertEventuallyLost(other uuid.UUID) {
220 p.t.Helper()
221 for {
222 o := p.peers[other]
223 if o.status == proto.CoordinateResponse_PeerUpdate_LOST {
224 return
225 }
226 if err := p.readOneResp(); err != nil {
227 assert.NoError(p.t, err)
228 return
229 }
230 }
231}
232
233func (p *Peer) AssertEventuallyResponsesClosed(expectedError string) {
234 gotErr := false

Calls 2

readOneRespMethod · 0.95
HelperMethod · 0.65