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

Method AssertEventuallyDisconnected

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

Source from the content-addressed store, hash-verified

203}
204
205func (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
219func (p *Peer) AssertEventuallyLost(other uuid.UUID) {
220 p.t.Helper()

Callers 1

GracefulDisconnectTestFunction · 0.95

Calls 2

readOneRespMethod · 0.95
HelperMethod · 0.65

Tested by

no test coverage detected