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

Method AssertEventuallyReadyForHandshake

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

Source from the content-addressed store, hash-verified

278}
279
280func (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
295func (p *Peer) AssertEventuallyGetsError(match string) {
296 p.t.Helper()

Callers 1

ReadyForHandshakeTestFunction · 0.95

Calls 3

readOneRespMethod · 0.95
HelperMethod · 0.65
IsMethod · 0.45

Tested by

no test coverage detected